frdel commited on
Commit
ec5941c
·
1 Parent(s): 6568f55
Files changed (2) hide show
  1. python/api/poll.py +1 -1
  2. python/helpers/runtime.py +1 -1
python/api/poll.py CHANGED
@@ -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)
15
  from_no = input.get("log_from", 0)
16
 
17
  # Get timezone from input (default to dotenv default or UTC if not provided)
 
11
  class Poll(ApiHandler):
12
 
13
  async def process(self, input: dict, request: Request) -> dict | Response:
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 CHANGED
@@ -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")
53
 
54
  def is_development() -> bool:
55
  return not is_dockerized()
 
49
  return name in args
50
 
51
  def is_dockerized() -> bool:
52
+ return bool(get_arg("dockerized"))
53
 
54
  def is_development() -> bool:
55
  return not is_dockerized()