mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Order import: Ignore completely empty lines
This commit is contained in:
@@ -95,6 +95,8 @@ def import_orders(event: Event, fileid: str, settings: dict, locale: str, user)
|
||||
|
||||
# Run validation
|
||||
for i, record in enumerate(parsed):
|
||||
if not any(record.values()):
|
||||
continue
|
||||
values = {}
|
||||
for c in cols:
|
||||
val = c.resolve(settings, record)
|
||||
|
||||
@@ -85,6 +85,7 @@ def inputfile_factory():
|
||||
'J': '2021-06-28 11:00:00',
|
||||
'K': '+4962213217750',
|
||||
},
|
||||
{},
|
||||
{
|
||||
'A': 'Anke',
|
||||
'B': 'Müller',
|
||||
|
||||
Reference in New Issue
Block a user