Skip to content

Commit

Permalink
Reorganize rempo
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Haas committed Nov 27, 2017
1 parent 931d869 commit 8ea994e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tree.py → src/tree.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from gpiozero import LEDBoard
from gpiozero.tools import random_values

from helper import is_december, is_christmas
from helper import is_december, is_between_christmas_eve_and_new_year


class Tree:
Expand All @@ -22,7 +22,7 @@ def handle_date(self, date):
if not is_december(date):
print("reset LEDs, because advent season is over")
self.reset()
elif is_christmas(date):
elif is_between_christmas_eve_and_new_year(date):
print("It's christmas time!!")
self.party_mode()
else:
Expand Down

0 comments on commit 8ea994e

Please sign in to comment.