Fix Bug: tuple index out of range

Brightcells 8 years ago
parent
commit
c9777aeb64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      group/views.py

+ 2 - 2
group/views.py

@@ -643,8 +643,8 @@ def pai2_home_api(request):
643 643
         'thumbup_num': row[19],
644 644
         'photo_from': row[20],
645 645
         'session_id': row[21],
646
-        'nomark': rows[22],
647
-        'origin': rows[23],
646
+        'nomark': row[22],
647
+        'origin': row[23],
648 648
         'created_at': row[24],
649 649
         'origin_expired_stamps': origin_expired_stamps(row[25], row[15]),
650 650
         'thumbup': get_group_photo_thumbup_flag(row[5], user_id),