Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,8 @@ def loadfile():
|
|
9 |
|
10 |
def savefile(newuser):
|
11 |
data = loadfile()
|
12 |
-
data['reminders']
|
|
|
13 |
with open("data.json", "w") as f:
|
14 |
json.dump(data, f, indent=4)
|
15 |
|
@@ -24,10 +25,9 @@ def Signup():
|
|
24 |
if st.button("Signup"):
|
25 |
if password == confpass:
|
26 |
savefile(newuser)
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
st.error("Try again")
|
31 |
|
32 |
|
33 |
|
|
|
9 |
|
10 |
def savefile(newuser):
|
11 |
data = loadfile()
|
12 |
+
usrdata = data['reminders']
|
13 |
+
usrdata.append(newuser)
|
14 |
with open("data.json", "w") as f:
|
15 |
json.dump(data, f, indent=4)
|
16 |
|
|
|
25 |
if st.button("Signup"):
|
26 |
if password == confpass:
|
27 |
savefile(newuser)
|
28 |
+
st.write("You are Registered Sucessfully")
|
29 |
+
else:
|
30 |
+
"Password do not match"
|
|
|
31 |
|
32 |
|
33 |
|