Skip to content

Commit

Permalink
Fixed type check in v5.10 migration #1795
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jan 29, 2023
1 parent 38f3d50 commit 520984e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions docs/reference/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ Current release series
:depth: 1


v5.11.0 - XXXXXXX 2023
----------------------



v5.10.0 - January 2023
----------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def regenerate_data(apps, schema_editor):
hour_start__lt=end_of_day,
).aggregate(gas_sum=Sum("gas"),)["gas_sum"]

if hours_gas_sum == 0:
if not hours_gas_sum or not current.gas:
continue

current_day_gas_diff = hours_gas_sum - current.gas
Expand Down
2 changes: 1 addition & 1 deletion dsmrreader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.utils.version import get_version

VERSION = (5, 11, 0, "final", 0)
VERSION = (5, 10, 1, "rc", 1)

__version__ = get_version(VERSION)

0 comments on commit 520984e

Please sign in to comment.