mirror of
https://github.com/pretix/pretix.git
synced 2026-05-14 16:44:06 +00:00
remove print statements
This commit is contained in:
@@ -66,7 +66,6 @@ class PropertyMappingForm(forms.Form):
|
||||
self.fields["overwrite"].choices = [
|
||||
(key, label) for (key, label) in self.fields["overwrite"].choices if key in available_modes
|
||||
]
|
||||
print(self.fields)
|
||||
|
||||
|
||||
class PropertyMappingFormSet(formset_factory(
|
||||
|
||||
@@ -165,12 +165,10 @@ class FakeSyncAPI:
|
||||
t = self.fake_database[table]
|
||||
for idx, record in enumerate(t):
|
||||
if record.get(search_by_attribute) == search_for_value:
|
||||
print("match:",table,idx,search_by_attribute,search_for_value,record)
|
||||
return {**record, "_id": idx}
|
||||
return None
|
||||
|
||||
def create_or_update_object(self, table, record):
|
||||
print("upsert", table, record)
|
||||
t = self.fake_database[table]
|
||||
if record.get("_id") is not None:
|
||||
t[record["_id"]].update(record)
|
||||
|
||||
Reference in New Issue
Block a user