mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
pretixdroid: Add Check-Ins to log
This commit is contained in:
@@ -86,9 +86,19 @@ class ApiRedeemView(ApiView):
|
||||
if 'status' not in response:
|
||||
if created:
|
||||
response['status'] = 'ok'
|
||||
op.order.log_action('pretix.plugins.pretixdroid.scan', data={
|
||||
'position': op.id,
|
||||
'positionid': op.positionid,
|
||||
'first': True,
|
||||
})
|
||||
else:
|
||||
response['status'] = 'error'
|
||||
response['reason'] = 'already_redeemed'
|
||||
op.order.log_action('pretix.plugins.pretixdroid.scan', data={
|
||||
'position': op.id,
|
||||
'positionid': op.positionid,
|
||||
'first': False,
|
||||
})
|
||||
|
||||
response['data'] = {
|
||||
'secret': op.secret,
|
||||
|
||||
Reference in New Issue
Block a user