mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Add progress bar to some large exports
This commit is contained in:
@@ -100,6 +100,10 @@ class AsyncAction:
|
||||
'success': False,
|
||||
'message': str(self.get_error_message(res.info))
|
||||
})
|
||||
elif res.state == 'PROGRESS':
|
||||
data.update({
|
||||
'percentage': res.result.get('value', 0)
|
||||
})
|
||||
return data
|
||||
|
||||
def get_result(self, request):
|
||||
|
||||
Reference in New Issue
Block a user