lint fix
frdel committed
Jul 31, 2025 at 08:16 UTC
2e95897804793ac2d25f6980c4b36697c70954b9
2 files changed
+2
-2
python/api/poll.py
+1
-1
@@ -11,7 +11,7 @@ from python.helpers.dotenv import get_dotenv_value
11
class Poll(ApiHandler):
12
13
async def process(self, input: dict, request: Request) -> dict | Response:
14
- ctxid = input.get("context", None)
14
+ ctxid = input.get("context", "")
15
from_no = input.get("log_from", 0)
16
17
# Get timezone from input (default to dotenv default or UTC if not provided)
python/helpers/runtime.py
+1
-1
@@ -49,7 +49,7 @@ def has_arg(name: str):
49
return name in args
50
51
def is_dockerized() -> bool:
52
- return get_arg("dockerized")
52
+ return bool(get_arg("dockerized"))
53
54
def is_development() -> bool:
55
return not is_dockerized()