feat: batchst添加字段并更新光子的统计2
This commit is contained in:
parent
c29d1e99d8
commit
8a501c2681
|
|
@ -28,7 +28,7 @@ def get_alldata_with_batch_and_store(batch: str):
|
||||||
|
|
||||||
if data:
|
if data:
|
||||||
if action == "get_or_create":
|
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":
|
elif action == "get":
|
||||||
bobj = BatchSt.objects.get(batch=batch, version=1)
|
bobj = BatchSt.objects.get(batch=batch, version=1)
|
||||||
bobj.data = json.loads(json.dumps(data, cls=MyJSONEncoder))
|
bobj.data = json.loads(json.dumps(data, cls=MyJSONEncoder))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue