Use __init__.py to manage api module
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from psycopg.rows import dict_row
|
||||
from api.connection import g_conn_dict as conn
|
||||
from connection import g_conn_dict as conn
|
||||
|
||||
def _get_current_operation(name: str) -> int:
|
||||
with conn[name].cursor(row_factory=dict_row) as cur:
|
||||
|
||||
Reference in New Issue
Block a user