Browse Source

对于匹配的第一个小程序
位置设置为 0.01 扩全

罗俊辉 7 months ago
parent
commit
537601911e
1 changed files with 7 additions and 5 deletions
  1. 7 5
      applications/deal/response.py

+ 7 - 5
applications/deal/response.py

@@ -81,10 +81,10 @@ class Response(object):
                 "index": 33
             }
         }
-        self.test_id_set = {'gh_080bb43aa0dc', 'gh_e0eb490115f5', 'gh_6d9f36e3a7be', 'gh_29074b51f2b7', 'gh_6d205db62f04',
-         'gh_d49df5e974ca', 'gh_d4dffc34ac39', 'gh_89ef4798d3ea', 'gh_b15de7c99912', 'gh_9eef14ad6c16',
-         'gh_0c89e11f8bf3', 'gh_f902cea89e48', 'gh_6b7c2a257263', 'gh_183d80deffb8', 'gh_9f8dc5b0c74e',
-         'gh_1b27dd1beeca', 'gh_e24da99dc899', 'gh_dd4c857bbb36', 'gh_7e5818b2dd83'}
+        # self.test_id_set = {'gh_080bb43aa0dc', 'gh_e0eb490115f5', 'gh_6d9f36e3a7be', 'gh_29074b51f2b7', 'gh_6d205db62f04',
+        #  'gh_d49df5e974ca', 'gh_d4dffc34ac39', 'gh_89ef4798d3ea', 'gh_b15de7c99912', 'gh_9eef14ad6c16',
+        #  'gh_0c89e11f8bf3', 'gh_f902cea89e48', 'gh_6b7c2a257263', 'gh_183d80deffb8', 'gh_9f8dc5b0c74e',
+        #  'gh_1b27dd1beeca', 'gh_e24da99dc899', 'gh_dd4c857bbb36', 'gh_7e5818b2dd83'}
 
     async def get_result(self):
         """
@@ -198,7 +198,9 @@ class Response(object):
             "mini_id": mini_id,
             "paragraphPosition": index * 0.25,
         }
-        if gh_id in self.test_id_set and index == 1:
+        # if gh_id in self.test_id_set and index == 1:
+        # 只针对插入的第一个小程序位置做改变
+        if index == 1:
             result['paragraphPosition'] = 0.01
 
         update_result_sql = f"""