diff options
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/tasks/scanner.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webmentions_ssg/tasks/scanner.py b/webmentions_ssg/tasks/scanner.py index f3665ee..1db52a5 100644 --- a/webmentions_ssg/tasks/scanner.py +++ b/webmentions_ssg/tasks/scanner.py @@ -81,9 +81,7 @@ def update_source( existing = {webmention.target: webmention for webmention in source.sent_webmentions} for webmention in existing.values(): - webmention = webmention.reopen( - source.revision, webmention.target in scanned.targets - ) + webmention.reopen(source.revision, webmention.target in scanned.targets) if not webmention.active and webmention.sent_revision is None: webmention.processed_revision = source.revision @@ -214,7 +212,7 @@ def scan_sources_task() -> None: source.deleted_at = scan_time for webmention in source.sent_webmentions: - webmention = webmention.reopen(source.revision, False) + webmention.reopen(source.revision, False) if webmention.sent_revision is None: webmention.processed_revision = source.revision |
