Fix: purchase date review

This commit is contained in:
TannedCung 2024-06-18 14:16:54 +07:00
parent 82f1a57150
commit 3596f38cbc

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: