mirror of
https://gitlab.com/akasroua/covot
synced 2025-04-21 22:31:12 +02:00
Compare commits
No commits in common. "master" and "0.1.0" have entirely different histories.
@ -33,8 +33,9 @@ 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 not existing_row:
|
if existing_row:
|
||||||
insert_data(data)
|
return
|
||||||
|
insert_data(data)
|
||||||
|
|
||||||
|
|
||||||
def save_attribute(id, attribute, data) -> None:
|
def save_attribute(id, attribute, data) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user