Use __init__.py to manage api module

This commit is contained in:
wqy
2022-09-02 20:29:22 +08:00
parent 99958a24ca
commit 013d037b0a
9 changed files with 54 additions and 43 deletions

View File

@@ -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: