From b49c7650aac4c163f86a885b6bf7387cb5bb112f Mon Sep 17 00:00:00 2001 From: Avik Datta Date: Wed, 22 May 2024 15:57:27 +0100 Subject: [PATCH] fix for mark cleanup db action --- app/project_cleanup_view.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/project_cleanup_view.py b/app/project_cleanup_view.py index 09c16b5..16307df 100644 --- a/app/project_cleanup_view.py +++ b/app/project_cleanup_view.py @@ -230,13 +230,11 @@ def mark_cleanup_finished(self, item): raise if len(failed_list) > 0: flash("Failed to change DB status", "danger") - self.update_redirect() - return redirect(self.get_redirect()) + return redirect(url_for('ProjectCleanupPendingView.list')) except Exception as e: log.error(e) flash('Failed to mark projects deleted', 'danger') - self.update_redirect() - return redirect(self.get_redirect()) + return redirect(url_for('ProjectCleanupPendingView.list')) @action("cleanup_db_entry", "Cleanup DB entry", confirmation="Confirm?", multiple=False, single=True, icon="fa-exclamation-triangle") def cleanup_db_entry(self, item):