Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c698dbaf
authored
Mar 28, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed db lost connection
1 parent
5385b05b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
opensipkd/base/__init__.py
opensipkd/base/__init__.py
View file @
c698dba
...
...
@@ -17,6 +17,7 @@ from pyramid.renderers import JSON
from
pyramid_mailer
import
mailer_factory_from_settings
import
datetime
,
decimal
from
sqlalchemy
import
engine_from_config
,
or_
import
transaction
from
.security
import
(
group_finder
,
get_user
,
MySecurityPolicy
,
...
...
@@ -167,6 +168,7 @@ def get_params(params, alternate=None, settings=None):
result
=
settings
and
params
in
settings
and
\
settings
[
params
]
.
strip
()
or
None
if
not
result
:
with
transaction
.
manager
:
row
=
Parameter
.
query_kode
(
params
)
.
first
()
result
=
row
and
row
.
value
or
None
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment