mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-27 19:04:15 +01:00
Working on db session management
This commit is contained in:
parent
bb8d374d82
commit
a90f524f83
@ -116,7 +116,11 @@ class Session:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def db(self):
|
def db(self):
|
||||||
""" Retrieve a database session """
|
""" Retrieve a database session
|
||||||
|
|
||||||
|
I'm not sure if this is the best way to handle database sessions.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
new_session = self._db_session is None
|
new_session = self._db_session is None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user