Remove database initial insertion hack

This commit is contained in:
coolneng 2021-01-08 04:12:23 +01:00
parent 590d40d189
commit 631984a85c
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 3 deletions

View File

@ -33,9 +33,8 @@ def create_database(data) -> None:
""" """
models.Base.metadata.create_all(bind=engine) models.Base.metadata.create_all(bind=engine)
existing_row = search_database(data["correo_institucional"]) existing_row = search_database(data["correo_institucional"])
if existing_row: if not existing_row:
return insert_data(data)
insert_data(data)
def save_attribute(id, attribute, data) -> None: def save_attribute(id, attribute, data) -> None: