feat: add per-user customization suppression toggles and API endpoints for profile

This commit is contained in:
2026-06-09 20:52:51 +00:00
parent c2c5166720
commit a3f9b949ca
15 changed files with 495 additions and 19 deletions
+2 -8
View File
@@ -36,19 +36,13 @@ os.environ["DEVPLACE_SITEMAP_TTL"] = "0"
def run_async(coro):
"""Run a coroutine from synchronous test code, regardless of event loop state."""
try:
loop = asyncio.get_running_loop()
except RuntimeError:
return asyncio.run(coro)
"""Run a coroutine from sync test code on a dedicated thread and fresh loop."""
result_box = []
exc_box = []
def _run():
try:
future = asyncio.run_coroutine_threadsafe(coro, loop)
result_box.append(future.result())
result_box.append(asyncio.run(coro))
except BaseException as e:
exc_box.append(e)