Fix: purchase_date review

This commit is contained in:
TannedCung 2024-06-18 10:55:10 +07:00
parent c3114534fc
commit 0fb8d54573

View File

@ -987,7 +987,7 @@ class AccuracyViewSet(viewsets.ViewSet):
if isinstance(v, str) and v == '':
v = None
if k == "purchase_date" and v is not None:
v = v.split("")
v = v.split(",")
if not isinstance(sample_result[k], list):
sample_result[k] = v
elif v: