Fix: bypass string purchase date

This commit is contained in:
TannedCung 2024-06-14 19:37:08 +07:00
parent c9c3f92150
commit 22d38ccfd8

View File

@ -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):