1
0
Fork 0
forked from mia/0x0

ModUI: Fix jinja2 func call in ban action

This commit is contained in:
Mia Herkt 2022-12-22 09:44:32 +01:00
parent 53249df28d
commit 0e4f0206ab
No known key found for this signature in database
GPG key ID: 72E154B8622EC191

2
mod.py
View file

@ -106,7 +106,7 @@ class NullptrMod(Screen):
trm += 1 trm += 1
f.delete(True) f.delete(True)
db.session.commit() db.session.commit()
txt += f", removed {trm} {'files' if trm != 1 else 'file'} totaling {jinja2.filters.do_filesizeformat(tsize, True)}" txt += f", removed {trm} {'files' if trm != 1 else 'file'} totaling {do_filesizeformat(tsize, True)}"
self.mount(Notification(txt)) self.mount(Notification(txt))
self._refresh_layout() self._refresh_layout()
ftable = self.query_one("#ftable") ftable = self.query_one("#ftable")