chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-04-12 22:11:10 -05:00
parent cb6e77be3e
commit 20544d412e
3 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -2457,7 +2457,9 @@ async def update_task(
try:
status = status.strip().lower()
if status not in VALID_TASK_STATUSES:
return json.dumps({'error': f'Invalid status: {status}. Must be one of: {", ".join(sorted(VALID_TASK_STATUSES))}'})
return json.dumps(
{'error': f'Invalid status: {status}. Must be one of: {", ".join(sorted(VALID_TASK_STATUSES))}'}
)
all_tasks = await Chats.get_chat_tasks_by_id(__chat_id__)
+1 -3
View File
@@ -1004,9 +1004,7 @@ async def get_terminal_servers(request: Request):
terminal_servers = []
if request.app.state.redis is not None:
try:
terminal_servers = json.loads(
await request.app.state.redis.get(f'{REDIS_KEY_PREFIX}:terminal_servers')
)
terminal_servers = json.loads(await request.app.state.redis.get(f'{REDIS_KEY_PREFIX}:terminal_servers'))
request.app.state.TERMINAL_SERVERS = terminal_servers
except Exception as e:
log.error(f'Error fetching terminal_servers from Redis: {e}')