Землетрясения
This commit is contained in:
parent
828b3302de
commit
0d73dd75e0
@ -926,5 +926,10 @@ def test_circuit():
|
||||
obj.velocity = random.uniform(10, MAX_SPEED_KPH)
|
||||
obj.update_time = timezone.now()
|
||||
obj.save()
|
||||
|
||||
test_earthquakes = Earthquake.objects.filter(source="Тест")
|
||||
for earthquake in test_earthquakes:
|
||||
earthquake.date_time = timezone.now()
|
||||
earthquake.save()
|
||||
except Exception:
|
||||
logging.error(traceback.format_exc())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user