feat: Add a manual address to stop issues with address index
All checks were successful
Build Docker / Build Image (push) Successful in 37s

This commit is contained in:
Nathan Woodburn 2023-12-05 18:35:08 +11:00
parent 12dd3dfedc
commit 797db5e1a9
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -114,9 +114,11 @@ def index():
handshake_scripts = "" handshake_scripts = ""
if request.cookies.get('HNS'): if request.cookies.get('HNS'):
return render_template('index.html', handshake_scripts=handshake_scripts, HNS=request.cookies.get('HNS'), repo=repo, repo_description=repo_description, custom=custom) return render_template('index.html', handshake_scripts=handshake_scripts, HNS=request.cookies.get('HNS'), repo=repo, repo_description=repo_description, custom=custom)
if handshake_scripts != "":
address = getAddress() address = getAddress()
# Set cookie # Set cookie
resp = make_response(render_template('index.html', handshake_scripts=handshake_scripts, HNS=address, repo=repo, repo_description=repo_description, custom=custom), 200, {'Content-Type': 'text/html'}) resp = make_response(render_template('index.html', handshake_scripts=handshake_scripts, HNS=address, repo=repo, repo_description=repo_description, custom=custom), 200, {'Content-Type': 'text/html'})
@ -144,7 +146,8 @@ def catch_all(path):
def getAddress(): def getAddress():
global address global address
if address == '': if address == '':
address = requests.get('http://hip02-server:3000').text address = 'hs1qv3uu4amv87g7p7h49xez2pmzwjf92am0wzpnh4'
# address = requests.get('http://hip02-server:3000').text?
return address return address