Refactor reading logic

This commit is contained in:
Peter Stockings
2024-12-30 23:30:22 +11:00
parent 68c8059466
commit d3eba9ba5b
2 changed files with 30 additions and 50 deletions

View File

@@ -29,7 +29,7 @@
class="px-4 py-2 bg-gray-300 text-gray-700 rounded hover:bg-gray-400">
Cancel
</a>
<form method="POST" action="{{ url_for('reading.confirm_delete', reading_id=reading.id) }}">
<form method="POST" action="{{ url_for('reading.delete_reading', reading_id=reading.id) }}">
<button type="submit" class="px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700">
Confirm
</button>