Browse Source

匹配的三个小程序
第一个--0.01
第二个--0.25
第三个--0.5

luojunhui 5 months ago
parent
commit
0ebea90bc9
1 changed files with 3 additions and 4 deletions
  1. 3 4
      applications/deal/response.py

+ 3 - 4
applications/deal/response.py

@@ -193,13 +193,12 @@ class Response(object):
             "productionPath": productionPath,
             "videoUrl": videoUrl,
             "mini_id": mini_id,
-            "paragraphPosition": index * 0.25,
         }
-        # if gh_id in self.test_id_set and index == 1:
-        # 只针对插入的第一个小程序位置做改变
+
         if index == 1:
             result['paragraphPosition'] = 0.01
-
+        else:
+            result['paragraphPosition'] = (index - 1) * 0.25
         update_result_sql = f"""
                             UPDATE {db_article}
                             SET