uncia/uncia/database/delete.py

17 lines
311 B
Python

from izzylib import logging
def cmd_inbox(self, data):
instance = self.get.inbox(data)
if not instance:
logging.debug(f'db.get.inbox: instance does not exist: {data}')
return False
self.remove(row=instance)
for row in self.search('retry', inboxid=instance.id):
self.remove(row=row)
return True