Fix: bypass string purchase date
This commit is contained in:
parent
c9c3f92150
commit
22d38ccfd8
@ -984,6 +984,8 @@ class AccuracyViewSet(viewsets.ViewSet):
|
||||
}
|
||||
for k, v in file_result.items():
|
||||
if k in sample_result.keys():
|
||||
if isinstance(v, str) and v == '':
|
||||
v = None
|
||||
if k == "purchase_date" and v is not None:
|
||||
v = v.split("")
|
||||
if not isinstance(sample_result[k], list):
|
||||
|
Loading…
Reference in New Issue
Block a user