Added Houseno inte ApplicantPersonalData

This commit is contained in:
2025-01-23 15:57:02 +01:00
parent 103b172a60
commit 00e535bb13
3 changed files with 17482 additions and 46 deletions

View File

@@ -14,9 +14,11 @@ class AddressDAO:
def __importPlz(self):
with open("import json filepath here", "r") as plz:
with open("pfad zur datei", "r") as plz:
postcodes = json.load(plz)
irgendwas = ""
try:
for i in postcodes:
test =i["plz_name"].split(",")
@@ -26,7 +28,8 @@ class AddressDAO:
town = town.strip()
if town:
print(f"PROCESSING {i['name']} {town}")
self.__cur.callproc("addZipCodes", (i["name"], town,))
self.__cur.callproc("addZipCodes", (i["name"], town, irgendwas,))
#self.__cur.callproc("addZipCodes", ("56271", "Kleinmaischeid", irgendwas,))
except mariadb.OperationalError as e:
print(f"Database Error: {e}")
finally:
@@ -34,7 +37,7 @@ class AddressDAO:
print("FINISHED")#
def __importCountry(self):
with open("/home/dstoppek/Downloads/staaten.json", "r") as country:
with open("pfad zur datei", "r") as country:
countries = json.load(country)
old = ""
try: