From e320148e99e685e97e8d1f33957eab99e8c56d96 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Fri, 7 Apr 2023 23:03:03 +0800 Subject: [PATCH] Remove debug info --- api/inp_in.py | 3 --- api/project.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/api/inp_in.py b/api/inp_in.py index 7414541..2957c94 100644 --- a/api/inp_in.py +++ b/api/inp_in.py @@ -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) diff --git a/api/project.py b/api/project.py index 64762ca..78c7cb4 100644 --- a/api/project.py +++ b/api/project.py @@ -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)