move to async database

This commit is contained in:
Hay1tsme committed 2024-01-09 14:42:17 -05:00
1 parent edd3ce8ead
commit 05586df08a
77 files changed
+1925 -1948

No files matched your search

+4 -4
View File
@@ -39,14 +39,14 @@ class PokkenMatchData(BaseData):
Match logs
"""
def save_match(self, user_id: int, match_data: Dict) -> Optional[int]:
async def save_match(self, user_id: int, match_data: Dict) -> Optional[int]:
pass
def get_match(self, match_id: int) -> Optional[Row]:
async def get_match(self, match_id: int) -> Optional[Row]:
pass
def get_matches_by_user(self, user_id: int) -> Optional[List[Row]]:
async def get_matches_by_user(self, user_id: int) -> Optional[List[Row]]:
pass
def get_matches(self, limit: int = 20) -> Optional[List[Row]]:
async def get_matches(self, limit: int = 20) -> Optional[List[Row]]:
pass