Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
eis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 094125ab
authored
Jul 12, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refactor connection setup and enhance view initialization with session management
1 parent
61e40e7b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
eispajak/models/payment.py
eispajak/views/pcpd.py
eispajak/models/payment.py
View file @
094125a
...
...
@@ -286,7 +286,7 @@ class Targets(PCBase, DefaultModel):
def
get_connection
(
settings
):
url
=
'pcpd.url'
in
settings
and
settings
[
'pcpd.url'
]
and
'pcpd.'
or
'sqlalchemy.'
engine
=
engine_from_config
(
settings
,
url
,
pool_pre_ping
=
True
)
engine
=
engine_from_config
(
settings
,
url
)
PCDBSession
.
configure
(
bind
=
engine
)
PCBase
.
metadata
.
bind
=
engine
return
engine
...
...
@@ -294,7 +294,6 @@ def get_connection(settings):
def
includeme
(
config
):
settings
=
get_settings
()
get_connection
(
settings
)
...
...
eispajak/views/pcpd.py
View file @
094125a
This diff is collapsed.
Click to expand it.
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