mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-10-26 02:48:47 -04:00
lxmf messages in outbound or sending state should be marked as failed when app starts as they are no longer being processed
This commit is contained in:
parent
f961c85e76
commit
2c2df242e5
1 changed files with 5 additions and 0 deletions
5
web.py
5
web.py
|
|
@ -55,6 +55,11 @@ class ReticulumWebChat:
|
|||
# vacuum database on start to shrink its file size
|
||||
sqlite_database.execute_sql("VACUUM")
|
||||
|
||||
# lxmf messages in outbound or sending state should be marked as failed when app starts as they are no longer being processed
|
||||
(database.LxmfMessage.update(state="failed")
|
||||
.where(database.LxmfMessage.state == "outbound")
|
||||
.orwhere(database.LxmfMessage.state == "sending").execute())
|
||||
|
||||
# init config
|
||||
self.config = Config()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue