From 5e41da7e8dada84fde90365c1c291ff6be0916c5 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sat, 5 Sep 2020 23:34:20 +0100 Subject: [PATCH] updates --- komrade/backend/switchboard.py | 3 ++- komrade/constants.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/komrade/backend/switchboard.py b/komrade/backend/switchboard.py index 9c5a5e4..87dbed4 100644 --- a/komrade/backend/switchboard.py +++ b/komrade/backend/switchboard.py @@ -26,7 +26,7 @@ class TheTelephone(Logger): def dial_operator(self,msg): URL = OPERATOR_API_URL + msg - r=tor_request_in_python(URL) + r=tor_request_in_python(OPERATOR_API_URL) print(r) print(r.text) return r @@ -94,6 +94,7 @@ class TheSwitchboard(FlaskView, Logger): def get(self): return "We're sorry; we are unable to complete your call as dialed. Please check the number and dial again, or call your operator to help you." + @route('/please/') def please(self,encr_b64_str=None): return 'helloooooo?' if not encr_b64_str: return OPERATOR_INTERCEPT_MESSAGE diff --git a/komrade/constants.py b/komrade/constants.py index 71f5d82..17cacf1 100644 --- a/komrade/constants.py +++ b/komrade/constants.py @@ -4,7 +4,7 @@ KOMRADE_ONION = 'u7spnj3dmwumzoa4.onion' KOMRADE_ONION2 = 'rwg4zcnpwshv4laq.onion' #'128.232.229.63' #'komrade.app' -OPERATOR_API_URL = f'http://{KOMRADE_ONION}/op/please/' +OPERATOR_API_URL = f'http://{KOMRADE_ONION}/op/' # paths