soonq/broker.py
def update_status(self, item, status):
        """Update the status of the given item in the work table."""
        con = sqlite3.connect(str(DB_PATH))
        with con:
            con.execute(
                f"""
                UPDATE {WORK_TABLENAME}
                SET status = ?
                WHERE task_id = ?
                """,
                (status, item.task_id),
            )
        con.close()
Update the status of the given item in the work table.
Update the status of the given item in the work table.
Update the status of the given item in the work table .
def update_status(self, item, status):
        con = sqlite3.connect(str(DB_PATH))
        with con:
            con.execute(
                f"""
                UPDATE {WORK_TABLENAME}
                SET status = ?
                WHERE task_id = ?
                """,
                (status, item.task_id),
            )
        con.close()
def update_status ( self , item , status ) : con = sqlite3 . connect ( str ( DB_PATH ) ) with con : con . execute ( f"""
                UPDATE {WORK_TABLENAME}
                SET status = ?
                WHERE task_id = ?
                """ , ( status , item . task_id ) , ) con . close ( )
Update the status of the given item in the work table.
Update the status of the given item in the work table .
"""Update the status of the given item in the work table."""
self
item
status