No undo redo for project api
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import psycopg as pg
|
import psycopg as pg
|
||||||
from connection import g_conn_dict as conn
|
from connection import g_conn_dict as conn
|
||||||
|
|
||||||
|
# no undo/redo
|
||||||
|
|
||||||
def have_project(name: str) -> bool:
|
def have_project(name: str) -> bool:
|
||||||
with pg.connect(conninfo="dbname=postgres", autocommit=True) as conn:
|
with pg.connect(conninfo="dbname=postgres", autocommit=True) as conn:
|
||||||
with conn.cursor() as cur:
|
with conn.cursor() as cur:
|
||||||
|
|||||||
Reference in New Issue
Block a user