Remove debug info

This commit is contained in:
WQY\qiong
2023-04-07 23:03:03 +08:00
parent 8b02b13e7e
commit e320148e99
2 changed files with 0 additions and 5 deletions

View File

@@ -275,9 +275,6 @@ def read_inp(project: str, inp: str, version: str = '3') -> bool:
if version != '3' and version != '2':
version = '2'
print(project)
print(inp)
if is_project_open(project):
close_project(project)

View File

@@ -26,12 +26,10 @@ def have_project(name: str) -> bool:
def copy_project(source: str, new: str) -> None:
with pg.connect(conninfo="dbname=postgres host=127.0.0.1", autocommit=True) as conn:
with conn.cursor() as cur:
print('copy')
cur.execute(f"create database {new} with template = {source}")
def create_project(name: str) -> None:
print('create')
return copy_project('project', name)