Store information about objects transferred in last successful sync

This commit is contained in:
Mira Weller
2025-03-04 16:18:10 +01:00
parent 87570df3f8
commit e051470e91
6 changed files with 130 additions and 63 deletions

View File

@@ -426,7 +426,7 @@ def translate_property_mappings(property_mapping, checkin_list_map):
for mapping in mappings:
if mapping["pretix_field"].startswith("checkin_date_"):
old_id = int(mapping["pretix_field"][len("checkin_date_") :])
old_id = int(mapping["pretix_field"][len("checkin_date_"):])
mapping["pretix_field"] = "checkin_date_%d" % checkin_list_map[old_id].pk
return json.dumps(mappings)
@@ -437,6 +437,7 @@ def get_enum_opts(q):
else:
return None
QUESTION_TYPE_IDENTIFIERS = {
Question.TYPE_NUMBER: "NUMBER",
Question.TYPE_STRING: "STRING",