Get plugin configuration
(self)
| 1987 | |
| 1988 | # Plugin config operations |
| 1989 | async def get_plugin_config(self) -> PluginConfig: |
| 1990 | """Get plugin configuration""" |
| 1991 | async with self._connect() as db: |
| 1992 | db.row_factory = aiosqlite.Row |
| 1993 | cursor = await db.execute("SELECT * FROM plugin_config WHERE id = 1") |
| 1994 | row = await cursor.fetchone() |
| 1995 | if row: |
| 1996 | return PluginConfig(**dict(row)) |
| 1997 | return PluginConfig() |
| 1998 | |
| 1999 | async def update_plugin_config(self, connection_token: str, auto_enable_on_update: bool = True): |
| 2000 | """Update plugin configuration""" |
no test coverage detected