caching is probably not needed and is counterproductive

This commit is contained in:
2024-11-15 21:40:14 +07:00
parent 2f59d7b0d6
commit 1af7bb81ba

View File

@ -7,7 +7,6 @@ from sqlalchemy.schema import ForeignKey
from sqlalchemy.sql import func, select
from sqlalchemy.types import JSON, BigInteger, Boolean, Integer, String
from core.data import cached
from core.data.schema import BaseData, metadata
best_score: Table = Table(
@ -314,7 +313,6 @@ class Mai2ScoreData(BaseData):
return None
return result.lastrowid
@cached(2)
async def get_best_scores(
self,
user_id: int,