Skip to content

Commit

Permalink
Fixes naar aanleiding van de fouten van Travis CI / pycodestyle gedaan
Browse files Browse the repository at this point in the history
Opgelost:
dsmr_pvoutput/services.py:30: [W] W293 blank line contains whitespace [pycodestyle]
dsmr_pvoutput/services.py:36: [C] E711 comparison to None should be 'if cond is None:' [pycodestyle]
  • Loading branch information
pyrocumulus committed Feb 22, 2018
1 parent 737b7c6 commit e094203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsmr_pvoutput/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def schedule_next_export():
next_export = round_to_nearest_upload_interval(date=next_export, round_to_minutes=status_settings.upload_interval)

print(' - PVOutput | Delaying the next export until: {}'.format(next_export))

status_settings.next_export = next_export
status_settings.save()


def round_to_nearest_upload_interval(date=None, round_to_minutes=5):
if (date == None):
if date is None:
date = timezone.now()

round_to_seconds = round_to_minutes*60
Expand Down

0 comments on commit e094203

Please sign in to comment.