wcs-olap: skip formdata wihtout a receipt_time, they are lost drafts

This commit is contained in:
Benjamin Dauvergne 2016-05-21 21:51:34 +02:00
parent 5836641e90
commit 285bc85758
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@ class WcsApi(object):
def get_formdata(self, slug):
for d in self.get_json(self.forms_url, slug + '/list?anonymise&full=on'):
# w.cs. had a bug where some formdata lost their draft status, skip them
if not d.get('receipt_time'):
continue
yield FormData(wcs_api=self, **d)
def get_schema(self, slug):