Skip to content

Commit

Permalink
Merge pull request robswc#45 from robswc/password-protection
Browse files Browse the repository at this point in the history
add comments
  • Loading branch information
robswc authored Oct 4, 2022
2 parents e3d755e + c6cb88a commit ad8acfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tvwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ def print_gui_info():
gui_modes_url = 'https://github.com/robswc/tradingview-webhooks-bot/discussions/43'
print(f'To learn more about GUI modes, visit: {gui_modes_url}')


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

# clear gui key if gui is set to open, else generate key
# Flask uses the existence of the key file to determine GUI mode
if open_gui:
clear_gui_key()
else:
generate_gui_key()

# print info regarding GUI and run the server
print_gui_info()
run_server()

Expand Down

0 comments on commit ad8acfe

Please sign in to comment.