From e6a51e196423bf9195b81218aa462e4aa0f19517 Mon Sep 17 00:00:00 2001 From: Joren de Graaf Date: Mon, 26 Oct 2026 20:23:16 +0100 Subject: [PATCH] Prevent immediate scan count repolling --- main/food/templates/food/partials/inventory_staging_counts.html | 2 +- main/food/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/food/templates/food/partials/inventory_staging_counts.html b/main/food/templates/food/partials/inventory_staging_counts.html index 36c9fcc..ff83775 100644 --- a/main/food/templates/food/partials/inventory_staging_counts.html +++ b/main/food/templates/food/partials/inventory_staging_counts.html @@ -1,6 +1,6 @@
{{ processing_count }}Processing {{ needs_review_count }}Needs Review diff --git a/main/food/tests.py b/main/food/tests.py index 1ee6d8e..5734d64 100644 --- a/main/food/tests.py +++ b/main/food/tests.py @@ -43,7 +43,7 @@ class FoodFoundationTests(TestCase): self.assertEqual(response.status_code, 200) self.assertContains(response, '1', html=True) self.assertContains(response, '1', html=True) - self.assertContains(response, 'hx-trigger="load, every 5s"') + self.assertContains(response, 'hx-trigger="every 5s"') InventoryScanItem.objects.filter(batch=batch, barcode='111').update(status=InventoryScanItem.Status.COMPLETE) response = self.client.get(url, secure=True)