aboutsummaryrefslogtreecommitdiff
path: root/api/user/info.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-16 16:56:23 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-16 16:56:23 +0200
commitaa2c999702dadba2afbcf2be9f597f890aafcc87 (patch)
tree72828d9d478b2f839f78e65d143bf4363f4ed8af /api/user/info.py
parentb9e1d1537bb9b8b178d9d6cb7aca06d8cfc068a4 (diff)
fix api/game/accept
Diffstat (limited to 'api/user/info.py')
-rw-r--r--api/user/info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/user/info.py b/api/user/info.py
index 3711371..a5e2aac 100644
--- a/api/user/info.py
+++ b/api/user/info.py
@@ -8,8 +8,8 @@ import json
# get relation to user_2_id from user_1_id's perspective
def get_relation_to(user_1_id, user_2_id):
relation = cursor.execute("select * from social where " + \
- "(user_1_id = ? and user_2_id = ?) or " + \
- "(user_1_id = ? and user_2_id = ?)", [user_1_id, user_2_id, user_2_id, user_1_id]).fetchone()
+ "(user_1_id = ? and user_2_id = ?) or " + \
+ "(user_1_id = ? and user_2_id = ?)", [user_1_id, user_2_id, user_2_id, user_1_id]).fetchone()
if not relation: return "none"
if relation[2] == "friendship": return "friends"
if relation[2] == "outgoing" and relation[0] == user_1_id: