summaryrefslogtreecommitdiff
path: root/assignment-list.py
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-16 09:36:14 -0400
committerLouie S <louie@example.com>2023-09-16 09:36:14 -0400
commit12f840536275ccebe2f382fb1ca40019b16b10f6 (patch)
tree668884dfc808a0a0dd5d28b57498e816cdd830d0 /assignment-list.py
parent8dbf2bfa796f63ca9628ee3395aaa52af247b7ab (diff)
Optional due date; urls working
Diffstat (limited to 'assignment-list.py')
-rwxr-xr-xassignment-list.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/assignment-list.py b/assignment-list.py
index 673a209..06fe806 100755
--- a/assignment-list.py
+++ b/assignment-list.py
@@ -39,6 +39,10 @@ class AssignmentList(QMainWindow):
self.add_group_act = QAction("Add Group", self)
self.add_group_act.triggered.connect(self.addGroup)
edit_menu.addAction(self.add_group_act)
+ edit_menu.addSeparator()
+ self.clean_hidden_act = QAction("Permanently Delete Removed Groups and Entries", self)
+ self.clean_hidden_act.triggered.connect(self.cleanHidden)
+ edit_menu.addAction(self.clean_hidden_act)
about_act = QAction("About", self)
about_act.triggered.connect(self.aboutDialog)
@@ -146,6 +150,13 @@ class AssignmentList(QMainWindow):
Globals.entries = list(filter(lambda e: e.id != id, Globals.entries))
self.drawGroups()
+ def cleanHidden(self):
+ """
+ Permanently delete removed groups and entries from db
+ """
+ # TODO consider creating a warning dialogue for this
+ DB.cleanHidden()
+
def drawGroups(self):
"""
Redraw the groups_hbox