zhangyong 1 rok pred
rodič
commit
992454c40a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      video_agc/agc_video_method.py

+ 1 - 1
video_agc/agc_video_method.py

@@ -140,7 +140,7 @@ class AgcVidoe():
     def get_link_gs_count(cls, mark):
         current_time = datetime.now()
         formatted_time = current_time.strftime("%Y-%m-%d")
-        count = f"""SELECT COUNT(*) AS total_count FROM ( SELECT audio, account_id FROM agc_video_deposit WHERE time = '{formatted_time}' and mark = '{mark}' GROUP BY audio, account_id) AS subquery;"""
+        count = f"""SELECT COUNT(*) AS total_count FROM ( SELECT audio, account_id FROM agc_video_deposit WHERE time = '{formatted_time}' and mark LIKE '%{mark}%' GROUP BY audio, account_id) AS subquery;"""
         count = MysqlHelper.get_values(count, "prod")
         if count == None:
             count = 0