handle Einsatzrapport without f_id
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8419ef4973
commit
f9b86f3c8f
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "pylokid"
|
||||
version = "3.1.4"
|
||||
version = "3.1.5"
|
||||
description = ""
|
||||
authors = ["Tobias Brunner <tobias@tobru.ch>"]
|
||||
license = "MIT"
|
||||
|
|
Loading…
Reference in New Issue