chore(backend,infra): resolve template update conflicts, import check knows the watcher and the api login
This commit is contained in:
1 parent
9e672623ac
commit
4945c7cbd3
27 files changed
+27
-82
No files matched your search
@@ -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]:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user