Skip to content

Commit 4bb3f5e

Browse files
committed
remove debug code etc.
1 parent 39e6c40 commit 4bb3f5e

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

server/app.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,10 @@
1414
app = Flask(__name__)
1515
bb = BlueButton()
1616

17-
## helper trouble shoot
18-
def print_setting():
19-
print("URL::BlueButton->base_url: {}".format(bb.base_url), flush=True)
20-
print("URL::BlueButton->auth_base_url: {}".format(bb.auth_base_url), flush=True)
21-
print("URL::BlueButton->auth_token_url: {}".format(bb.auth_token_url), flush=True)
22-
print("URL::BlueButton->callback_url: {}".format(bb.callback_url), flush=True)
23-
2417

2518
app = Flask(__name__)
2619
bb = BlueButton()
2720

28-
host_ip = os.environ.get("HOST_IP")
29-
30-
print_setting()
31-
32-
if host_ip:
33-
if str(bb.base_url).startswith("http://localhost"):
34-
bb.base_url = str(bb.base_url).replace("http://localhost", "http://{}".format(host_ip))
35-
if str(bb.auth_base_url).startswith("http://localhost"):
36-
bb.auth_base_url = str(bb.auth_base_url).replace("http://localhost", "http://{}".format(host_ip))
37-
if str(bb.auth_token_url).startswith("http://localhost"):
38-
bb.auth_token_url = str(bb.auth_token_url).replace("http://localhost", "http://{}".format(host_ip))
39-
print_setting()
40-
4121
# This is where medicare.gov beneficiary associated
4222
# with the current logged in app user,
4323
# in real app, this could be the app specific
@@ -63,7 +43,8 @@ def get_auth_url():
6343
# provide query parameter scope=<v2 scopes>
6444
# where <v2 scopes> is space delimited v2 scope specs (url encoded)
6545
# e.g. patient/ExplanationOfBenefit.rs
66-
redirect_url = bb.generate_authorize_url(auth_data) + "&scope=patient%2FPatient.s%20patient%2FExplanationOfBenefit.rs"
46+
redirect_url = (bb.generate_authorize_url(auth_data)
47+
+ "&scope=patient%2FPatient.s%20patient%2FExplanationOfBenefit.rs")
6748
return redirect_url
6849

6950

0 commit comments

Comments
 (0)