displays web logs in GUI now. fixes #33

This commit is contained in:
Micah Lee 2014-06-06 21:54:08 -04:00
parent 67ea5b5c2c
commit 927282a432
4 changed files with 67 additions and 14 deletions

View file

@ -44,3 +44,12 @@ def copy_url():
clipboard.set_text(url)
return ''
@app.route("/check_for_requests")
def check_for_requests():
global onionshare
try:
r = onionshare.request_q.get(False)
return json.dumps(r)
except onionshare.Queue.Empty:
return ''