Ankush05 commited on
Commit
a5183c2
·
1 Parent(s): b63d0c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -9,7 +9,8 @@ def loadfile():
9
 
10
  def savefile(newuser):
11
  data = loadfile()
12
- data['reminders'].append(newuser)
 
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
- st.write("You are Registered Sucessfully")
29
- else:
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