From f9b86f3c8fb71a96f9d49228d6a7cde50e129529 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 7 Dec 2021 21:25:09 +0100 Subject: [PATCH] handle Einsatzrapport without f_id --- pylokid/main.py | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pylokid/main.py b/pylokid/main.py index 31d2583..b58e3c5 100644 --- a/pylokid/main.py +++ b/pylokid/main.py @@ -38,7 +38,7 @@ PUSHOVER_USER_KEY = os.getenv("PUSHOVER_USER_KEY") def main(): - """ main """ + """main""" # Logging configuration logging.basicConfig( @@ -244,6 +244,8 @@ def main(): os.path.join(TMP_DIR, file_name), webdav_client, ) + else: + f_id = f_type logger.info("[%s] Publishing message on Pushover", f_id) @@ -258,6 +260,8 @@ def main(): else: logger.error("[%s] Unknown type: %s", f_id, f_type) + # TODO check webdav for Einsatzrapport PDF with f_id in filename and then process it + # send heartbeat requests.get(HEARTBEAT_URL) # repeat every diff --git a/pyproject.toml b/pyproject.toml index 77d0ce8..54293d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pylokid" -version = "3.1.4" +version = "3.1.5" description = "" authors = ["Tobias Brunner "] license = "MIT"