Skip to content
Snippets Groups Projects
Commit 56903475 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

bugfix: could not create new services in the latestmonitor table

parent e2eef359
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,9 @@ 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
......
......@@ -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' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment