Get captcha configuration
(self)
| 1839 | |
| 1840 | # Captcha config operations |
| 1841 | async def get_captcha_config(self) -> CaptchaConfig: |
| 1842 | """Get captcha configuration""" |
| 1843 | async with self._connect() as db: |
| 1844 | db.row_factory = aiosqlite.Row |
| 1845 | cursor = await db.execute("SELECT * FROM captcha_config WHERE id = 1") |
| 1846 | row = await cursor.fetchone() |
| 1847 | if row: |
| 1848 | return CaptchaConfig(**dict(row)) |
| 1849 | return CaptchaConfig() |
| 1850 | |
| 1851 | async def update_captcha_config( |
| 1852 | self, |