Browse Source

loggetest

chenjunkai 6 năm trước cách đây
mục cha
commit
97f661b51c
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      Controller/VodBucket.py

+ 4 - 1
Controller/VodBucket.py

@@ -231,5 +231,8 @@ class UidBucketView(View):
             ubqs = ubqs.filter(uid=uid)
         ubqs = ubqs.values('id', 'uid', 'channel', 'status', 'endTime', 'bucket__bucket',
                            'bucket__storeDay', 'bucket__area')
-        res = list(ubqs[(page - 1) * line:page * line])
+        res = {
+            'datas': list(ubqs[(page - 1) * line:page * line]),
+            'count': ubqs.count()
+        }
         return response.json(0, res)