Skip to content

Commit

Permalink
fix for mark cleanup db action
Browse files Browse the repository at this point in the history
  • Loading branch information
avikdatta committed May 22, 2024
1 parent 73b6cce commit b49c765
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/project_cleanup_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b49c765

Please sign in to comment.