mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-08 18:35:14 -05:00
Remove unnecessary list creation in mysql functions.
This commit is contained in:
@@ -55,7 +55,7 @@ class APIData(APIProviderInterface, BaseData):
|
||||
result["name"],
|
||||
result["token"],
|
||||
)
|
||||
for result in cursor.fetchall()
|
||||
for result in cursor
|
||||
]
|
||||
|
||||
def validate_client(self, token: str) -> bool:
|
||||
@@ -159,7 +159,7 @@ class APIData(APIProviderInterface, BaseData):
|
||||
|
||||
sql = "SELECT id, timestamp, uri, token, config FROM server ORDER BY timestamp ASC"
|
||||
cursor = self.execute(sql)
|
||||
return [format_result(result) for result in cursor.fetchall()]
|
||||
return [format_result(result) for result in cursor]
|
||||
|
||||
def create_server(self, uri: str, token: str) -> int:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user