MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_captcha_config

Method get_captcha_config

src/core/database.py:1841–1849  ·  view source on GitHub ↗

Get captcha configuration

(self)

Source from the content-addressed store, hash-verified

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,

Callers 8

lifespanFunction · 0.80
_load_browser_countMethod · 0.80
get_captcha_configFunction · 0.80
test_captcha_scoreFunction · 0.80

Calls 2

_connectMethod · 0.95
CaptchaConfigClass · 0.85

Tested by 1

test_captcha_scoreFunction · 0.64