Skip to content

Commit 0bd097a

Browse files
committed
Hotfix order by ascending
1 parent b2a13af commit 0bd097a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sensorsafrica/management/commands/calculate_data_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def handle(self, *args, **options):
9494
~Q(minimum=float("NaN")),
9595
~Q(maximum=float("NaN")),
9696
)
97-
.order_by("-timestamp")):
97+
.order_by("timestamp")):
9898
SensorDataStat.objects.bulk_create(
9999
list(map(lambda stat: map_stat(stat, city), stats))
100100
)

0 commit comments

Comments
 (0)