feat: batchst添加字段并更新光子的统计2

This commit is contained in:
caoqianming 2025-05-08 15:13:04 +08:00
parent c29d1e99d8
commit 8a501c2681
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def get_alldata_with_batch_and_store(batch: str):
if data:
if action == "get_or_create":
bobj, _ = BatchSt.objects.get_or_create(batch=batch)
bobj, _ = BatchSt.objects.get_or_create(batch=batch, version=1)
elif action == "get":
bobj = BatchSt.objects.get(batch=batch, version=1)
bobj.data = json.loads(json.dumps(data, cls=MyJSONEncoder))