From 2668c3882b0d147748142b65adf2e518a2de8bc3 Mon Sep 17 00:00:00 2001
From: vermaas <vermaas@astron.nl>
Date: Thu, 8 Dec 2022 15:49:30 +0100
Subject: [PATCH] accomodate 'deleted' and 'added' in the summary json

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

diff --git a/atdb/taskdatabase/services/algorithms.py b/atdb/taskdatabase/services/algorithms.py
index a0a7f00d..512ec854 100644
--- a/atdb/taskdatabase/services/algorithms.py
+++ b/atdb/taskdatabase/services/algorithms.py
@@ -766,7 +766,7 @@ def construct_summary(task):
                 pass
 
             try:
-                to_add = record['to_add']
+                to_add = record['added']
                 if to_add:
                     line += '<th>Added</th>'
                     line += '<tr><td colspan="3">'
@@ -777,7 +777,7 @@ def construct_summary(task):
                 pass
 
             try:
-                to_delete = record['to_delete']
+                to_delete = record['deleted']
                 if to_delete:
                     line += '<th>Deleted</th>'
                     line += '<tr><td colspan="3">'
diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html
index 4d83e625..74d76183 100644
--- a/atdb/taskdatabase/templates/taskdatabase/index.html
+++ b/atdb/taskdatabase/templates/taskdatabase/index.html
@@ -34,7 +34,7 @@
         {% include 'taskdatabase/pagination.html' %}
        </div>
     </div>
-    <p class="footer"> Version 8 December 2022 - 15:00
+    <p class="footer"> Version 8 December 2022 - 16:00
 
 </div>
 
-- 
GitLab