mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-07-01 20:26:27 +00:00
fix(db)!: remove r10 calculation, see #1
This commit is contained in:
@ -195,18 +195,6 @@ class Database(metaclass=Singleton):
|
||||
cursor = conn.cursor()
|
||||
return cursor.execute("SELECT b30 FROM calculated_potential").fetchone()[0]
|
||||
|
||||
def get_r10(self) -> float:
|
||||
with self.conn as conn:
|
||||
cursor = conn.cursor()
|
||||
return cursor.execute("SELECT r10 FROM calculated_potential").fetchone()[0]
|
||||
|
||||
def get_potential(self) -> float:
|
||||
with self.conn as conn:
|
||||
cursor = conn.cursor()
|
||||
return cursor.execute(
|
||||
"SELECT potential FROM calculated_potential"
|
||||
).fetchone()[0]
|
||||
|
||||
def insert_score(self, score: DbScoreRow):
|
||||
columns = self.__get_columns_from_dataclass(DbScoreRow)
|
||||
columns_clause = self.__get_columns_clause(columns)
|
||||
|
Reference in New Issue
Block a user