aboutsummaryrefslogtreecommitdiff
path: root/api/social/friend_accept.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-15 13:50:07 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-15 13:50:07 +0200
commitc5f71bc38772dedb033258416e0cd722f7b9e7af (patch)
tree4e607acfd8db65dd6dbf396463be539e8b83411a /api/social/friend_accept.py
parent7a2e2ea09aa75ddf02c70bd254d63a0f79670f80 (diff)
new hierarchy decorators
Diffstat (limited to 'api/social/friend_accept.py')
-rw-r--r--api/social/friend_accept.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/social/friend_accept.py b/api/social/friend_accept.py
index 4eb4837..b434272 100644
--- a/api/social/friend_accept.py
+++ b/api/social/friend_accept.py
@@ -1,14 +1,14 @@
from flask import Blueprint, request
from db import cursor, connection
-from social.create_relation import two_person_endpoint
from socket_io import io
+from hierarchy import two_person
import time
accept = Blueprint('accept', __name__)
@accept.route("/accept", methods=['POST'])
-@two_person_endpoint
+@two_person
def route(user_1_id, user_2_id):
cursor.execute(
"update social set type = \"friendship\" where user_1_id = ? and user_2_id = ?",