Skip to content

Commit

Permalink
Smooth Mobile and narrow screen experience
Browse files Browse the repository at this point in the history
  • Loading branch information
Tfloow committed Feb 4, 2024
1 parent 5fc23ef commit 32e395d
Show file tree
Hide file tree
Showing 66 changed files with 7,671 additions and 925 deletions.
8 changes: 2 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,7 @@ def get_locale():
async def index():
"""Render homepage, with an overview of all services."""
logger.info(f"[LOG]: HTTP request for homepage")
language = {}
language["list"] = LANGUAGES
language["user"] = get_locale()

return render_template("index.html", serviceList=all_service_details().root.values(), language=language)
return render_template("index.html", serviceList=all_service_details().root.values(), get_locale=get_locale())

@app.route("/language")
def languageChange():
Expand Down Expand Up @@ -590,4 +586,4 @@ def custom_exception_handler(request_: Request, exc: RequestValidationError):
# Run the whole application ############################################################################################
if __name__ == "__main__":
uvicorn.run(api)
# app.run(host="0.0.0.0", debug=True)
# app.run(host="0.0.0.0", debug=True)
1 change: 0 additions & 1 deletion data/404-Test/log.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ date,UP
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
2024-02-04T08:47:30,False
Loading

0 comments on commit 32e395d

Please sign in to comment.