Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,14 @@ def interApp():
|
|
| 38 |
if "password" not in session:
|
| 39 |
wipeSession()
|
| 40 |
return redirect(url_for("login"))
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
@app.route("/signup")
|
| 44 |
def signup():
|
|
@@ -54,8 +61,6 @@ async def login():
|
|
| 54 |
inData = request.form # input data, to seperate from the real, valid data
|
| 55 |
inUser = inData["user"]
|
| 56 |
inPass = inData["pass"]
|
| 57 |
-
response = None
|
| 58 |
-
#try:
|
| 59 |
response = (
|
| 60 |
await supabase.table("users")
|
| 61 |
.select("username, password", count="exact")
|
|
|
|
| 38 |
if "password" not in session:
|
| 39 |
wipeSession()
|
| 40 |
return redirect(url_for("login"))
|
| 41 |
+
temp_history = [
|
| 42 |
+
{"user": "Online?", "message": "Anyways, are you going to the social?", "local": True},
|
| 43 |
+
{"user": "Very_Cool_Bird", "message": "Gottta ask mom", "local": False},
|
| 44 |
+
{"user": "Online?", "message": "Alrighty. Text me her response", "local": True},
|
| 45 |
+
{"user": "Very_Cool_Bird", "message": "She said yes, but you need to bring me home again", "local": False},
|
| 46 |
+
{"user": "Online?", "message": "Sounds good. See you there", "local": True}
|
| 47 |
+
]
|
| 48 |
+
return render_template("app.html", history=json.dumps(temp_history))
|
| 49 |
|
| 50 |
@app.route("/signup")
|
| 51 |
def signup():
|
|
|
|
| 61 |
inData = request.form # input data, to seperate from the real, valid data
|
| 62 |
inUser = inData["user"]
|
| 63 |
inPass = inData["pass"]
|
|
|
|
|
|
|
| 64 |
response = (
|
| 65 |
await supabase.table("users")
|
| 66 |
.select("username, password", count="exact")
|