Skip to content

Commit

Permalink
Updated return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Konstantinov committed Apr 7, 2023
1 parent f810dbe commit 7c26409
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ async def get_active_power():
for host in hosts:
power += host.power if host.online.lower() == 'true' else 0

return power
return {
'success': True,
'time': datetime.now(),
'power': power
}


@app.get("/get_asic_info/{asic_id}", include_in_schema=False, description="Returns an info about an ASIC from API")
Expand Down

0 comments on commit 7c26409

Please sign in to comment.