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 @@
import psycopg as pg
from api.connection import g_conn_dict as conn
from connection import g_conn_dict as conn
def have_project(name: str) -> bool:
with pg.connect(conninfo="dbname=postgres", autocommit=True) as conn: