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 set_title(name: str, value: str) -> None:
|
||||
with conn[name].cursor() as cur:
|
||||
|
||||
Reference in New Issue
Block a user