wcs-olap: skip formdata wihtout a receipt_time, they are lost drafts
This commit is contained in:
parent
5836641e90
commit
285bc85758
|
@ -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):
|
||||
|
|
Reference in New Issue