File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ def app_locker(app_uuid):
107107 return 'invalid app' , 400
108108 entry = LockerEntry (app = app , user_id = uid , user_token = secrets .token_urlsafe (32 ))
109109 db .session .add (entry )
110- App .query .filter_by (app_uuid = app_uuid ).update ({'installed ' : App .installed + 1 })
110+ App .query .filter_by (app_uuid = app_uuid ).update ({'installs ' : App .installs + 1 })
111111 db .session .commit ()
112112 return jsonify (application = jsonify_locker_app (entry ))
113113 elif request .method == 'DELETE' :
114114 entry = LockerEntry .query .join (LockerEntry .app ).filter (LockerEntry .user_id == uid ,
115115 App .app_uuid == app_uuid ).one_or_none ()
116116 if entry :
117117 db .session .delete (entry )
118- App .query .filter_by (app_uuid = app_uuid ).update ({'installed ' : App .installed - 1 })
118+ App .query .filter_by (app_uuid = app_uuid ).update ({'installs ' : App .installs - 1 })
119119 db .session .commit ()
120120 return '' , 204
121121
You can’t perform that action at this time.
0 commit comments