handle Einsatzrapport without f_id
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Brunner 2021-12-07 21:25:09 +01:00
parent 8419ef4973
commit f9b86f3c8f
2 changed files with 6 additions and 2 deletions

View file

@ -38,7 +38,7 @@ PUSHOVER_USER_KEY = os.getenv("PUSHOVER_USER_KEY")
def main(): def main():
""" main """ """main"""
# Logging configuration # Logging configuration
logging.basicConfig( logging.basicConfig(
@ -244,6 +244,8 @@ def main():
os.path.join(TMP_DIR, file_name), os.path.join(TMP_DIR, file_name),
webdav_client, webdav_client,
) )
else:
f_id = f_type
logger.info("[%s] Publishing message on Pushover", f_id) logger.info("[%s] Publishing message on Pushover", f_id)
@ -258,6 +260,8 @@ def main():
else: else:
logger.error("[%s] Unknown type: %s", f_id, f_type) 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 # send heartbeat
requests.get(HEARTBEAT_URL) requests.get(HEARTBEAT_URL)
# repeat every # repeat every

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "pylokid" name = "pylokid"
version = "3.1.4" version = "3.1.5"
description = "" description = ""
authors = ["Tobias Brunner <tobias@tobru.ch>"] authors = ["Tobias Brunner <tobias@tobru.ch>"]
license = "MIT" license = "MIT"