diff --git a/.gitignore b/.gitignore index ffe984e..561d1bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ - __pycache__/ - instance/ - website/avatars/ - -.env \ No newline at end of file +.env +*.hurl +.venv/ diff --git a/website/routes.py b/website/routes.py index fb3d15c..0018aa3 100644 --- a/website/routes.py +++ b/website/routes.py @@ -180,8 +180,10 @@ def home(): openseaInfo = requests.get(f"https://api.opensea.io/api/v2/chain/optimism/account/{address}/nfts?collection=handshake-slds", headers={"Accept": "application/json", "x-api-key":openSeaAPIKey}) - if openseaInfo.status_code == 200: - hnsid = openseaInfo.json() + if openseaInfo.status_code != 200: + print("Failed to get HNS ID info") + print(openseaInfo.json()) + hnsid = openseaInfo.json() domains = [] if 'domains' in session: @@ -563,6 +565,7 @@ def revoke_token(): @bp.route("/discovery") +@bp.route("/.well-known/openid-configuration") def autodiscovery(): host = request.host discovery = {