Testosterone and sensitivity.
[kiosk.git] / gcal_trigger.py
index 870020adb553b60d0ab62cda6ce214802311612a..81e603ee95f54f57bf96aad9f3f74602e9a4ec5a 100644 (file)
@@ -1,15 +1,21 @@
-import constants
+#!/usr/bin/env python3
+
+from typing import List, Optional, Tuple
+
+import kiosk_constants as constants
 import globals
 import 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. ******")
-            return (constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH)
+            return [(constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH)]
         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()