mirror of https://gitlab.com/akasroua/covot
Remove database initial insertion hack
This commit is contained in:
parent
590d40d189
commit
631984a85c
|
@ -33,9 +33,8 @@ def create_database(data) -> None:
|
|||
"""
|
||||
models.Base.metadata.create_all(bind=engine)
|
||||
existing_row = search_database(data["correo_institucional"])
|
||||
if existing_row:
|
||||
return
|
||||
insert_data(data)
|
||||
if not existing_row:
|
||||
insert_data(data)
|
||||
|
||||
|
||||
def save_attribute(id, attribute, data) -> None:
|
||||
|
|
Loading…
Reference in New Issue