handle Einsatzrapport without f_id
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8419ef4973
commit
f9b86f3c8f
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue