diff --git a/atdb/taskdatabase/models.py b/atdb/taskdatabase/models.py index 954f70e146b85b27fb51fb4205e8f64b870f3ae0..c8547417ba18b30e7e1642d65ec021f3dd095dd1 100644 --- a/atdb/taskdatabase/models.py +++ b/atdb/taskdatabase/models.py @@ -615,7 +615,10 @@ class Monitor(models.Model): # it has happened that latest_monitoring objects failed to delete, # which leads to a growing database and failure of the 'Hold' button on the Monitoring screen. LatestMonitor.objects.all().delete() - + except: + # if something else is wrong, just continue, so that a new entry can be created + pass + try: # carry over the metadata, if possible latest_metadata = latestMonitor.metadata diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html index ca199e45770330c0d192606c5f34c2fc19067158..51fbf003542065651c6503b8722212d3f3961e6d 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 23 Feb 2024 + <p class="footer"> Version 29 Feb 2024 </div> {% include 'taskdatabase/refresh.html' %}