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,7 +615,10 @@ class Monitor(models.Model): ...@@ -615,7 +615,10 @@ class Monitor(models.Model):
# it has happened that latest_monitoring objects failed to delete, # 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. # which leads to a growing database and failure of the 'Hold' button on the Monitoring screen.
LatestMonitor.objects.all().delete() LatestMonitor.objects.all().delete()
except:
# if something else is wrong, just continue, so that a new entry can be created
pass
try: try:
# carry over the metadata, if possible # carry over the metadata, if possible
latest_metadata = latestMonitor.metadata latest_metadata = latestMonitor.metadata
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %} {% include 'taskdatabase/pagination.html' %}
</div> </div>
</div> </div>
<p class="footer"> Version 23 Feb 2024 <p class="footer"> Version 29 Feb 2024
</div> </div>
{% include 'taskdatabase/refresh.html' %} {% include 'taskdatabase/refresh.html' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment