Ankush05 commited on
Commit
7723a30
·
1 Parent(s): d9b4fcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,9 +8,9 @@ def loadfile():
8
  return data
9
 
10
  def savefile(newuser):
11
- data = loadfile()
12
- data['users'].append(newuser)
13
- json_object = json.dumps(data, indent=4)
14
  with open("data.json", "w") as f:
15
  f.write(json_object)
16
 
 
8
  return data
9
 
10
  def savefile(newuser):
11
+ # data = loadfile()
12
+ # data['users'].append(newuser)
13
+ json_object = json.dumps(newuser, indent=4)
14
  with open("data.json", "w") as f:
15
  f.write(json_object)
16