fix casing and add readme
This commit is contained in:
parent
5cd12d6081
commit
d76f63723f
2 changed files with 10 additions and 8 deletions
8
README.md
Normal file
8
README.md
Normal 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
|
10
_server.py
10
_server.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue