From 28dc75c176e7dd8d511c15203daee7ba2afd05fe Mon Sep 17 00:00:00 2001 From: yashlamba Date: Thu, 12 Dec 2024 17:12:45 +0100 Subject: [PATCH] curation: tasks: fix updated filter --- site/zenodo_rdm/curation/config.py | 2 +- site/zenodo_rdm/curation/tasks.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/site/zenodo_rdm/curation/config.py b/site/zenodo_rdm/curation/config.py index 60056a15..bb846513 100644 --- a/site/zenodo_rdm/curation/config.py +++ b/site/zenodo_rdm/curation/config.py @@ -5,7 +5,7 @@ # ZenodoRDM is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. -"""Moderation config.""" +"""Curation config.""" from .rules import ( additional_desc_contains_high_conf_keywords, diff --git a/site/zenodo_rdm/curation/tasks.py b/site/zenodo_rdm/curation/tasks.py index d65833db..55e24b43 100644 --- a/site/zenodo_rdm/curation/tasks.py +++ b/site/zenodo_rdm/curation/tasks.py @@ -46,8 +46,9 @@ def run_eu_record_curation(since): dsl.Q( "range", updated={ - "gte": datetime.fromisoformat(since).isoformat() - - timedelta(hours=12), + "gte": ( + datetime.fromisoformat(since) - timedelta(hours=12) + ).isoformat(), }, ), ],