Merge pull request 'Remove duplicate get_opts in Ongeki static' (#228) from Kayori/artemis:smallcleanup into develop

Reviewed-on: Hay1tsme/artemis#228
This commit is contained in:
2025-09-24 00:24:21 +00:00

View File

@ -604,13 +604,6 @@ class OngekiStaticData(BaseData):
return None return None
return result.fetchall() return result.fetchall()
async def get_opts(self) -> Optional[List[Row]]:
result = await self.execute(opts.select())
if result is None:
return None
return result.fetchall()
async def set_opt_enabled(self, opt_id: int, enabled: bool) -> bool: async def set_opt_enabled(self, opt_id: int, enabled: bool) -> bool:
result = await self.execute(opts.update(opts.c.id == opt_id).values(isEnable=enabled)) result = await self.execute(opts.update(opts.c.id == opt_id).values(isEnable=enabled))