From 3b61376824ce503e2f0affdbe7b5bfcd30b7a6de Mon Sep 17 00:00:00 2001 From: Nosratullah Mohammadi Date: Thu, 30 Apr 2020 16:22:05 +0430 Subject: [PATCH] Update main.py --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index c1f547a..1eed09a 100644 --- a/app/main.py +++ b/app/main.py @@ -16,11 +16,11 @@ CORS(app) nest_calls = dir(nest) -nest_calls = filter(lambda x: not x.startswith('_'), nest_calls) +nest_calls = list(filter(lambda x: not x.startswith('_'), nest_calls)) nest_calls.sort() topo_calls = dir(topo) -topo_calls = filter(lambda x: not x.startswith('_'), topo_calls) +topo_calls = list(filter(lambda x: not x.startswith('_'), topo_calls)) topo_calls.sort()