make case in /u/... not matter

This commit is contained in:
trinkey 2024-03-22 22:07:28 -04:00 committed by GitHub
parent c2ab57166a
commit b4c8978f5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -153,6 +153,7 @@ def get_template(json, username):
return title, inner, styles, embed return title, inner, styles, embed
def get_user_page(user): def get_user_page(user):
user = user.lower()
x = open(f"{CONTENT_DIRECTORY}user.html", "r").read() x = open(f"{CONTENT_DIRECTORY}user.html", "r").read()
try: try:
user_json = json.loads(open(f"{SAVING_DIRECTORY}{user}.json", "r").read()) user_json = json.loads(open(f"{SAVING_DIRECTORY}{user}.json", "r").read())