[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Enable deck and nettest API also when director is not started
commit 657941f91970c91a257932993bcb3bd8670b1781
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date: Tue Jan 24 15:32:41 2017 +0000
Enable deck and nettest API also when director is not started
---
ooni/ui/web/server.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ooni/ui/web/server.py b/ooni/ui/web/server.py
index 58c77132..fc197a12 100644
--- a/ooni/ui/web/server.py
+++ b/ooni/ui/web/server.py
@@ -367,7 +367,7 @@ class WebUIAPI(object):
@app.route('/api/deck', methods=["GET"])
@xsrf_protect(check=False)
- @requires_true(attrs=['_director_started', '_is_initialized'])
+ @requires_true(attrs=['_is_initialized'])
def api_deck_list(self, request):
deck_list = {'decks': []}
for deck_id, deck in self.director.deck_store.list():
@@ -492,7 +492,7 @@ class WebUIAPI(object):
@app.route('/api/nettest', methods=["GET"])
@xsrf_protect(check=False)
- @requires_true(attrs=['_director_started', '_is_initialized'])
+ @requires_true(attrs=['_is_initialized'])
def api_nettest_list(self, request):
return self.render_json(self.director.netTests, request)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits