mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-03 12:56:02 +00:00
lint fix
This commit is contained in:
parent
9361542a74
commit
2e95897804
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ from python.helpers.dotenv import get_dotenv_value
|
|||
class Poll(ApiHandler):
|
||||
|
||||
async def process(self, input: dict, request: Request) -> dict | Response:
|
||||
ctxid = input.get("context", None)
|
||||
ctxid = input.get("context", "")
|
||||
from_no = input.get("log_from", 0)
|
||||
|
||||
# Get timezone from input (default to dotenv default or UTC if not provided)
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ def has_arg(name: str):
|
|||
return name in args
|
||||
|
||||
def is_dockerized() -> bool:
|
||||
return get_arg("dockerized")
|
||||
return bool(get_arg("dockerized"))
|
||||
|
||||
def is_development() -> bool:
|
||||
return not is_dockerized()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue