Small fixes

This commit is contained in:
2018-07-10 23:09:16 +02:00
parent 75fce01c3b
commit f1bfefa7ab
2 changed files with 5 additions and 4 deletions

View File

@@ -141,9 +141,10 @@ def delete_project(project_id, conn):
cursor.execute(query, (project_id,))
if cursor.rowcount != 1:
logging.error('DELETE FAILED')
print('could not find current project')
else:
print('deleted project {}: {}'.format(project_id, 'project_name'))
print('could not find project {}'.format(project_id))
print('deleted project {}: {}'.format(project_id, 'project_name'))
# TODO Cascade deleting
def list_project(active_project_id, conn):
query = """