mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Fix invalid task call
This commit is contained in:
@@ -19,7 +19,7 @@ class InvoiceExporter(BaseExporter):
|
||||
with ZipFile(os.path.join(d, 'tmp.zip'), 'w') as zipf:
|
||||
for i in self.event.invoices.all():
|
||||
if not i.file:
|
||||
invoice_pdf_task.apply_async(args=(i.pk))
|
||||
invoice_pdf_task.apply(args=(i.pk,))
|
||||
i.refresh_from_db()
|
||||
i.file.open('r')
|
||||
zipf.writestr('{}.pdf'.format(i.number), i.file.read())
|
||||
|
||||
Reference in New Issue
Block a user