Skip to content

Commit ad8acfe

Browse files
authored
Merge pull request #45 from robswc/password-protection
add comments
2 parents e3d755e + c6cb88a commit ad8acfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tvwb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,17 @@ def print_gui_info():
5858
gui_modes_url = 'https://github.com/robswc/tradingview-webhooks-bot/discussions/43'
5959
print(f'To learn more about GUI modes, visit: {gui_modes_url}')
6060

61-
6261
def run_server():
6362
run(f'gunicorn --bind {host}:{port} wsgi:app'.split(' '))
6463

6564
# clear gui key if gui is set to open, else generate key
65+
# Flask uses the existence of the key file to determine GUI mode
6666
if open_gui:
6767
clear_gui_key()
6868
else:
6969
generate_gui_key()
7070

71+
# print info regarding GUI and run the server
7172
print_gui_info()
7273
run_server()
7374

0 commit comments

Comments
 (0)