test application updated@build living space
This commit is contained in:
@@ -13,6 +13,7 @@ def get_people_from_json():
|
||||
read_files_json, with_pydantic = read_json_file(json_file="people"), []
|
||||
read_files = read_files_json.get("people")
|
||||
for row in read_files:
|
||||
row["ref_id"] = row["uu_id"]
|
||||
pydantic_row = InsertPerson(**row)
|
||||
with_pydantic.append(pydantic_row.model_dump())
|
||||
if not with_pydantic:
|
||||
@@ -22,6 +23,7 @@ def get_people_from_json():
|
||||
|
||||
generate_random_national_identity_id = lambda n: str(random.randint(10 ** (n - 1), 10**n))
|
||||
|
||||
|
||||
def migrate_people(requester: BothAPIS):
|
||||
for response_data in get_people_from_json():
|
||||
response_data["national_identity_id"] = generate_random_national_identity_id(11)
|
||||
|
||||
Reference in New Issue
Block a user