X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=inline;f=gkeep_renderer.py;h=f910e309a4ef62771d4d67d3998b0f961bc04ba2;hb=86f7e14f34b43ed8eb8cf5eaf113a4ecca976327;hp=443abc10e8e4c89a1037c3dc88a0fa9e234e0eb1;hpb=da3a11e9fcea80a7700eb54605512d331a9ec612;p=kiosk.git
diff --git a/gkeep_renderer.py b/gkeep_renderer.py
index 443abc1..f910e30 100644
--- a/gkeep_renderer.py
+++ b/gkeep_renderer.py
@@ -7,7 +7,7 @@ from typing import Dict
import gkeepapi # type: ignore
-import constants
+import kiosk_constants
import file_writer
import renderer
import kiosk_secrets as secrets
@@ -65,7 +65,7 @@ class gkeep_renderer(renderer.abstaining_renderer):
contents = contents.replace(
"\u2610 ", '
'
)
- contents = linkify.sub(r'\1', contents)
+ #contents = linkify.sub(r'\1', contents)
individual_lines = contents.split("\n")
num_lines = len(individual_lines)
@@ -132,7 +132,7 @@ class gkeep_renderer(renderer.abstaining_renderer):
f.write("")
else:
logger.debug(f"Note is empty, deleting {filename}.")
- _ = os.path.join(constants.pages_dir, filename)
+ _ = os.path.join(kiosk_constants.pages_dir, filename)
try:
os.remove(_)
except:
@@ -141,5 +141,11 @@ class gkeep_renderer(renderer.abstaining_renderer):
# Test
+#logger.setLevel(logging.DEBUG)
+#ch = logging.StreamHandler()
+#ch.setLevel(logging.DEBUG)
+#formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
+#ch.setFormatter(formatter)
+#logger.addHandler(ch)
#x = gkeep_renderer({"Test", 1234})
#x.periodic_render("Test")