mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-20 22:40:17 +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()
|
conn.commit()
|
||||||
self.__trigger_update_hooks()
|
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