mirror of
https://gitlab.com/akasroua/covot
synced 2025-04-21 22:31:12 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
631984a85c |
@ -33,8 +33,7 @@ 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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user