Fixed hsl_ftecher.py
This commit is contained in:
@@ -42,8 +42,9 @@ class HSLFetcher:
|
|||||||
if count == 0:
|
if count == 0:
|
||||||
HSLDataModel.objects.create(data=json_dump)
|
HSLDataModel.objects.create(data=json_dump)
|
||||||
else:
|
else:
|
||||||
model_arr[count - 1].data = json_dump
|
obj = model_arr[count - 1]
|
||||||
|
obj.data = json_dump
|
||||||
|
obj.save()
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
HSLFetcher.last_fetched = now
|
HSLFetcher.last_fetched = now
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user