updated postgres and mongo updated

This commit is contained in:
2025-04-20 14:21:13 +03:00
parent 71822681f2
commit cc19cb7e6d
85 changed files with 6090 additions and 1986 deletions

View File

@@ -1,4 +1,5 @@
from Schemas import (
Addresses,
AddressCity,
AddressStreet,
AddressLocality,
@@ -78,6 +79,22 @@ def create_one_address(db_session):
db=db_session,
)
address_list.append(street)
address = Addresses.find_or_create(
street_id=street.id,
street_uu_id=str(street.uu_id),
build_number="Ex1",
door_number="1",
floor_number="1",
comment_address="Example Address",
letter_address="Example Address",
short_letter_address="Example Address",
latitude=0,
longitude=0,
is_confirmed=True,
db=db_session,
)
address_list.append(address)
for address_single in address_list:
address_single.save(db=db_session)
return
if address_single.meta_data.created:
address_single.save(db=db_session)