chore(backend,infra): resolve template update conflicts, import check knows the watcher and the api login

This commit is contained in:
hh committed 2026-10-10 20:59:12 +02:00
1 parent 5fb8f8a534
commit 56146e4e8d
27 files changed
+27 -82

No files matched your search

+3 -2
View File
@@ -4,8 +4,9 @@ import sys
HEAVY = ["aiogram", "pyrogram", "fastapi", "google.genai"]
SERVICES = {
"api": (["api.app"], {"fastapi"}),
"api": (["api.app"], {"fastapi", "pyrogram"}),
"userbot": (["userbot.runner", "userbot.handlers"], {"pyrogram"}),
"watcher": (["watcher.runner"], {"pyrogram"}),
}
PROBE = """
import importlib, sys
@@ -13,7 +14,7 @@ for module in sys.argv[1].split(","):
importlib.import_module(module)
print(" ".join(name for name in sys.argv[2:] if name in sys.modules))
"""
ENV = dict(os.environ)
ENV = {**os.environ, "AUTH__TOKEN": "check"}
def loaded(modules: list[str]) -> tuple[set[str], str]:
-4
View File
@@ -5,7 +5,6 @@ from userbot.modules.client import PyroClient
from utils.env import env
from utils.logging import logger, setup_logging
<<<<<<< before updating
setup_logging()
@@ -19,9 +18,6 @@ def _finalize_session(sessions_dir: Path, name: str) -> Path:
target = sessions_dir / f"{name}.session"
(sessions_dir / "generated.session").rename(target)
return target
=======
from userbot.modules.client import PyroClient
>>>>>>> after updating
async def main() -> None: