services are checked

This commit is contained in:
2024-11-08 17:14:02 +03:00
parent a5b1e0b2f4
commit c5b771e5cb
82 changed files with 1720 additions and 869 deletions

View File

@@ -1,5 +1,3 @@
def do_alembic():
from sqlalchemy import text
from alembic_generate import generate_alembic_with_session
@@ -57,7 +55,7 @@ def create_application_defaults_func(create_address=False):
phone_code="90",
country_id=country.id,
country_uu_id=str(country.uu_id),
**confirmed_dict
**confirmed_dict,
)
city = AddressCity.find_or_create(
city_name="ANKARA",
@@ -65,14 +63,14 @@ def create_application_defaults_func(create_address=False):
licence_plate="06",
state_id=state.id,
state_uu_id=str(state.uu_id),
**confirmed_dict
**confirmed_dict,
)
district = AddressDistrict.find_or_create(
district_name="ÇANKAYA",
district_code="1231",
city_id=city.id,
city_uu_id=str(city.uu_id),
**confirmed_dict
**confirmed_dict,
)
locality = AddressLocality.find_or_create(
locality_name="MERKEZ",
@@ -81,7 +79,7 @@ def create_application_defaults_func(create_address=False):
type_description=None,
district_id=district.id,
district_uu_id=str(district.uu_id),
**confirmed_dict
**confirmed_dict,
)
neighborhood = AddressNeighborhood.find_or_create(
neighborhood_name="AYRANCI MAHALLESİ",
@@ -90,7 +88,7 @@ def create_application_defaults_func(create_address=False):
type_description="MAHALLESİ",
locality_id=locality.id,
locality_uu_id=str(locality.uu_id),
**confirmed_dict
**confirmed_dict,
)
street = AddressStreet.find_or_create(
street_name="REŞAT NURİ CADDESİ",
@@ -99,7 +97,7 @@ def create_application_defaults_func(create_address=False):
street_code="52270",
neighborhood_id=neighborhood.id,
neighborhood_uu_id=str(neighborhood.uu_id),
**confirmed_dict
**confirmed_dict,
)
return
@@ -110,4 +108,3 @@ if __name__ == "__main__":
if init_alembic_address:
do_alembic()
create_application_defaults_func(create_address=False)