Fixed json uuid parsing issue

This commit is contained in:
Maximilian Giller 2024-10-12 14:23:33 +02:00
parent 82bc06817b
commit d843dc3f72

View file

@ -99,7 +99,7 @@ def write_all_reservations(
reservations_json = [] reservations_json = []
for r in reservations.values(): for r in reservations.values():
reservations_json.append({"item_id": r.item_id, "name": r.name}) reservations_json.append({"item_id": str(r.item_id), "name": r.name})
with open(path, "w", encoding="UTF-8") as fp: with open(path, "w", encoding="UTF-8") as fp:
json.dump({"reservations": reservations_json}, fp) json.dump({"reservations": reservations_json}, fp)