fix casing and add readme

This commit is contained in:
trinkey 2024-02-20 19:09:45 -05:00
parent 5cd12d6081
commit d76f63723f
2 changed files with 10 additions and 8 deletions

8
README.md Normal file
View file

@ -0,0 +1,8 @@
# infopage
or https://infpg.pythonanywhere.com
it's like pronouns.page but i made it
### todo
* social links
* sexuality/gender flags

View file

@ -118,7 +118,7 @@ def api_account_login():
def api_account_signup():
try:
x = json.loads(request.data)
username = x["username"].replace(" ", "")
username = x["username"].replace(" ", "").lower()
passhash = x["password"]
except json.JSONDecodeError:
flask.abort(400)
@ -163,7 +163,7 @@ def api_account_signup():
"background": "#111122"
},
"names": [
[username, "4"]
[x["username"], "4"]
],
"pronouns": [
["he/him", "3"],
@ -293,12 +293,6 @@ def api_save():
def u_(username):
return flask.send_file(f"{CONTENT_DIRECTORY}user.html")
# levels:
# 4 - love
# 3 - good
# 2 - okay
# 1 - bad
ensure_file(SAVING_DIRECTORY, folder=True)
ensure_file(f"{SAVING_DIRECTORY}tokens/", folder=True)