Browse Source

update config

Tobias Simetsreiter 4 years ago
parent
commit
22a527e8d6
2 changed files with 2 additions and 1 deletions
  1. 1 0
      config.mk.j2
  2. 1 1
      simpilib/eink.py

+ 1 - 0
config.mk.j2

@@ -2,3 +2,4 @@
 RASPI_IP?={{ RASPI_IP }}
 RASPI_USER?={{ RASPI_USER }}
 DEPLOY_DIR?={{ DEPLOY_DIR }}
+CRON_TIMER?=*/30 * * * * root ${DEPLOY_DIR}/bin/simpi.py eink_quote_qr

+ 1 - 1
simpilib/eink.py

@@ -35,7 +35,7 @@ def eink_quote_qr(args):
 
     author = None
     import re
-    dashes = r"(.*)[\u002D\u058A\u05BE\u1400\u1806\u2010-\u2015\u2E17\u2E1A\u2E3A\u2E3B\u2E40\u301C\u3030\u30A0\uFE31\uFE32\uFE58\uFE63\uFF0D](.*)"
+    dashes = r"(.*)[~\u002D\u058A\u05BE\u1400\u1806\u2010-\u2015\u2E17\u2E1A\u2E3A\u2E3B\u2E40\u301C\u3030\u30A0\uFE31\uFE32\uFE58\uFE63\uFF0D](.*)"
     matches = re.match(dashes, text)
     if matches:
         groups = matches.groups()