wcs_olap: improve generic status mapping using new startpoint flag on statuses
This commit is contained in:
parent
3a6303095d
commit
d12cb2a7ae
|
@ -488,6 +488,13 @@ class WcsFormdefFeeder(object):
|
|||
channel = data.submission.channel.lower()
|
||||
if channel == 'web' and data.submission.backoffice:
|
||||
channel = 'backoffice'
|
||||
# Simplify status
|
||||
if status.endpoint:
|
||||
generic_status = 3
|
||||
elif status.startpoint:
|
||||
generic_status = 1
|
||||
else:
|
||||
generic_status = 2
|
||||
row = {
|
||||
'formdef_id': self.formdef_sql_id,
|
||||
'receipt_time': data.receipt_time,
|
||||
|
|
Reference in New Issue