curation: minor fixes; bump deps #2360
Annotations
2 errors
Run tests:
site/zenodo_rdm/curation/tasks.py#L1
Black format check
--- /home/runner/work/zenodo-rdm/zenodo-rdm/site/zenodo_rdm/curation/tasks.py 2024-12-10 10:25:39.426405+00:00
+++ /home/runner/work/zenodo-rdm/zenodo-rdm/site/zenodo_rdm/curation/tasks.py 2024-12-10 10:33:39.547204+00:00
@@ -19,11 +19,17 @@
@shared_task
def run_eu_record_curation(since):
"""Run EC Curator."""
- ctx = {"processed": 0, "approved": 0, "failed": 0, "since": since, "records_moved": []}
+ ctx = {
+ "processed": 0,
+ "approved": 0,
+ "failed": 0,
+ "since": since,
+ "records_moved": [],
+ }
dry_run = not current_app.config.get("CURATION_ENABLE_EU_CURATOR")
curator = EURecordCurator(dry=dry_run)
query = dsl.Q(
"bool",
@@ -39,11 +45,12 @@
},
),
dsl.Q(
"range",
updated={
- "gte": datetime.fromisoformat(since).isoformat() - timedelta(hours=12),
+ "gte": datetime.fromisoformat(since).isoformat()
+ - timedelta(hours=12),
},
),
],
must_not=[
dsl.Q(
|
Run tests
Process completed with exit code 1.
|
Loading