From 47d7452daa0848458f50e95cda0466ff4f3d38cb Mon Sep 17 00:00:00 2001
From: Vermaas <vermaas@astron.nl>
Date: Thu, 15 Feb 2024 19:49:52 +0100
Subject: [PATCH] update activities part 2

---
 atdb/taskdatabase/templates/taskdatabase/index.html | 2 +-
 atdb/taskdatabase/views.py                          | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html
index bb4bf74d..2324fdb0 100644
--- a/atdb/taskdatabase/templates/taskdatabase/index.html
+++ b/atdb/taskdatabase/templates/taskdatabase/index.html
@@ -31,7 +31,7 @@
             {% include 'taskdatabase/pagination.html' %}
         </div>
     </div>
-    <p class="footer"> Version 15 Feb 2024 (19:00)
+    <p class="footer"> Version 15 Feb 2024 (19:50)
 </div>
 
 {% include 'taskdatabase/refresh.html' %}
diff --git a/atdb/taskdatabase/views.py b/atdb/taskdatabase/views.py
index ad752873..2da01adb 100644
--- a/atdb/taskdatabase/views.py
+++ b/atdb/taskdatabase/views.py
@@ -1712,7 +1712,8 @@ def UpdateAllActivities(request):
         try:
             i += 1
             task = Task.objects.filter(sas_id=activity.sas_id)[0]
-            activities_handler.update_activity(task)
+            if i>1465:
+                activities_handler.update_activity(task)
             logger.info(f'{i} of {total}')
         except Exception as error:
             logger.error(error)
-- 
GitLab