From 056b77e82c72136170084ef0addba013eae22c9d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 13 Mar 2021 10:46:32 +0100 Subject: friend request accept thingy cool :tada: --- api/social/friend_accept.py | 1 + 1 file changed, 1 insertion(+) (limited to 'api/social') diff --git a/api/social/friend_accept.py b/api/social/friend_accept.py index 8d09862..bc850d2 100644 --- a/api/social/friend_accept.py +++ b/api/social/friend_accept.py @@ -21,6 +21,7 @@ def route(): cursor.execute("update social set type = \"friendship\" where user_1_id = ? and user_2_id = ?", [user_1_id, user_2_id]) + connection.commit() return "", 200 -- cgit v1.2.3