Commit adf76b53 authored by xianyang's avatar xianyang

1-16: 朋友圈优化

parent b94efc33
......@@ -364,13 +364,14 @@ def upload_file_body(file_strem, file_name):
return dir_to_create
def children_comment(fcmid, visitor_id):
def children_comment(fcmid, uid):
result = []
fs = []
friend_data = FriendComment.query.filter(or_(and_(FriendComment.status == 0,
FriendComment.fcmid == int(fcmid)),
and_(FriendComment.uid == int(visitor_id),
FriendComment.fcmid == int(fcmid)))).all()
and_(FriendComment.uid == int(uid),
FriendComment.fcmid == int(fcmid))
)).all()
for infos in friend_data:
d = infos.serialization()
d['status'] = infos.status
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment