Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • arkindex/backend
1 result
Show changes
Commits on Source (3)
......@@ -2,6 +2,7 @@ Backend for Historical Manuscripts Indexing
===========================================
[![pipeline status](https://gitlab.teklia.com/arkindex/backend/badges/master/pipeline.svg)](https://gitlab.teklia.com/arkindex/backend/commits/master)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
## Requirements
......
1.6.0-alpha2
1.6.0-alpha3
......@@ -199,7 +199,7 @@ class WorkerRunQuerySet(QuerySet):
queryset = list(self.annotate(new_has_results=self.has_results_expression()).only("id"))
for run in queryset:
run.has_results = run.new_has_results
self.bulk_update(queryset, ["has_results"])
self.bulk_update(queryset, ["has_results"], 1000)
def has_results_expression(self):
return reduce(operator.or_, [
......