mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-19 06:00:18 +00:00
feat(db): delete_score(score_id)
This commit is contained in:
parent
c1085c1f65
commit
15beeb5f35
@ -260,3 +260,10 @@ class Database(metaclass=Singleton):
|
||||
)
|
||||
conn.commit()
|
||||
self.__trigger_update_hooks()
|
||||
|
||||
def delete_score(self, score_id: int):
|
||||
with self.conn as conn:
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("DELETE FROM scores WHERE id = ?", (score_id,))
|
||||
conn.commit()
|
||||
self.__trigger_update_hooks()
|
||||
|
Loading…
x
Reference in New Issue
Block a user