From d14dd7c1fd6b5067051e246fa952458221517811 Mon Sep 17 00:00:00 2001 From: Untriex Programming Date: Fri, 16 Apr 2021 08:23:42 +0200 Subject: [PATCH] devices_list update --- server/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/main.py b/server/main.py index 57a6551..75a3a88 100644 --- a/server/main.py +++ b/server/main.py @@ -197,7 +197,11 @@ def comparision(file: str): @app.get("/devices_list") def get_devices_list(): - return [{"connected_id": ID}, *heartbeat_table["file_system"]] + returning_value = [{"connected_id": ID}, *heartbeat_table["file_system"]] + while "" in returning_value: + returning_value.remove("") + return returning_value + @app.get("/admin/get/{command}")