Use __init__.py to manage api module
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user