wcs_olap: improve generic status mapping using new startpoint flag on statuses

This commit is contained in:
Benjamin Dauvergne 2016-06-18 09:29:07 +02:00
parent 3a6303095d
commit d12cb2a7ae
1 changed files with 7 additions and 0 deletions

View File

@ -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,