mark Einsatzrapport seen when processed
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
44d7a2f364
commit
cadfe1aa55
|
@ -77,7 +77,7 @@ class EmailHandling:
|
||||||
temp.append(val)
|
temp.append(val)
|
||||||
msg_id_subject_deduplicated[key] = val
|
msg_id_subject_deduplicated[key] = val
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
"Adding Message ID %s '%s' to list to process", msg_id, subject
|
"Adding Message ID %s '%s' to list to process", key, val
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.mark_seen(key, key)
|
self.mark_seen(key, key)
|
||||||
|
|
|
@ -244,6 +244,10 @@ def main():
|
||||||
"Scan {} wurde bearbeitet und in Cloud geladen".format(f_id),
|
"Scan {} wurde bearbeitet und in Cloud geladen".format(f_id),
|
||||||
title="Feuerwehr Scan bearbeitet - {}".format(f_id),
|
title="Feuerwehr Scan bearbeitet - {}".format(f_id),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Marking message as seen, no need to reprocess again
|
||||||
|
imap_client.mark_seen(msg, f_id)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.error("[%s] Unknown type: %s", f_id, f_type)
|
logger.error("[%s] Unknown type: %s", f_id, f_type)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "pylokid"
|
name = "pylokid"
|
||||||
version = "3.1.1"
|
version = "3.1.2"
|
||||||
description = ""
|
description = ""
|
||||||
authors = ["Tobias Brunner <tobias@tobru.ch>"]
|
authors = ["Tobias Brunner <tobias@tobru.ch>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
Loading…
Reference in New Issue