mark Einsatzrapport seen when processed
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2021-03-09 19:52:34 +01:00
parent 44d7a2f364
commit cadfe1aa55
3 changed files with 6 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class EmailHandling:
temp.append(val)
msg_id_subject_deduplicated[key] = val
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:
self.mark_seen(key, key)

View File

@ -244,6 +244,10 @@ def main():
"Scan {} wurde bearbeitet und in Cloud geladen".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:
logger.error("[%s] Unknown type: %s", f_id, f_type)

View File

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