projects
/
kiosk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update .gitignore
[kiosk.git]
/
gcal_trigger.py
diff --git
a/gcal_trigger.py
b/gcal_trigger.py
index 870020adb553b60d0ab62cda6ce214802311612a..36e46e62e81a11ea2ab356dc4139201d5b187cca 100644
(file)
--- a/
gcal_trigger.py
+++ b/
gcal_trigger.py
@@
-1,15
+1,21
@@
+#!/usr/bin/env python3
+
+from typing import List, Optional, Tuple
+
import constants
import globals
import trigger
import constants
import globals
import trigger
+
class gcal_trigger(trigger.trigger):
class gcal_trigger(trigger.trigger):
- def get_triggered_page_list(self):
- if globals.get("gcal_triggered")
== True
:
+ def get_triggered_page_list(self)
-> Optional[List[Tuple[str, int]]]
:
+ if globals.get("gcal_triggered"):
print("****** gcal has an imminent upcoming event. ******")
print("****** gcal has an imminent upcoming event. ******")
- return
(constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH)
+ return
[(constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH)]
else:
return None
else:
return None
-#globals.put('gcal_triggered', True)
-#x = gcal_trigger()
-#x.get_triggered_page_list()
+
+# globals.put('gcal_triggered', True)
+# x = gcal_trigger()
+# x.get_triggered_page_list()