removing print statements
This commit is contained in:
@@ -38,9 +38,7 @@ def format_text(text):
|
|||||||
return formatted
|
return formatted
|
||||||
|
|
||||||
def update_display(color, text, cursor = False, blink = False):
|
def update_display(color, text, cursor = False, blink = False):
|
||||||
print(text)
|
|
||||||
text = format_text(text)
|
text = format_text(text)
|
||||||
print(text)
|
|
||||||
lcd.color = color
|
lcd.color = color
|
||||||
lcd.message = text
|
lcd.message = text
|
||||||
lcd.cursor = cursor
|
lcd.cursor = cursor
|
||||||
@@ -49,9 +47,7 @@ def update_display(color, text, cursor = False, blink = False):
|
|||||||
|
|
||||||
def process_events(events):
|
def process_events(events):
|
||||||
now = datetime.now(tz=TIMEZONE)
|
now = datetime.now(tz=TIMEZONE)
|
||||||
print("PROCESSING EVENTS")
|
|
||||||
is_working_time = is_work_time(now.time())
|
is_working_time = is_work_time(now.time())
|
||||||
print(is_working_time)
|
|
||||||
if is_event_active(events, now):
|
if is_event_active(events, now):
|
||||||
if is_working_time:
|
if is_working_time:
|
||||||
update_display(color=COLOR_RED, text="Meeting in Progress")
|
update_display(color=COLOR_RED, text="Meeting in Progress")
|
||||||
|
|||||||
Reference in New Issue
Block a user