LingxinMeng 9 maanden geleden
bovenliggende
commit
fb6d85d7ae
1 gewijzigde bestanden met toevoegingen van 2 en 5 verwijderingen
  1. 2 5
      src/python2/pjibot_delivery/callback.py

+ 2 - 5
src/python2/pjibot_delivery/callback.py

@@ -58,7 +58,6 @@ if __name__ == '__main__':
                         file3 = False
                         file4 = False
                         file5 = False
-                        file6 = False
                         file7 = False
                         file8 = False
                         file9 = False
@@ -73,18 +72,16 @@ if __name__ == '__main__':
                                 file4 = True
                             if '/pos_pji.csv' in str(obj2.key):
                                 file5 = True
-                            if '/report.pdf' in str(obj2.key):
-                                file6 = True
                             if '/scenario_orig.mp4' in str(obj2.key):
                                 file7 = True
                             if '/simulation.xosc' in str(obj2.key):
                                 file8 = True
                             if '/trajectory_pji.csv' in str(obj2.key):
                                 file9 = True
-                        if not file1 or not file2 or not file3 or not file4 or not file5 or not file6 or not file7 or not file8 or not file9:
+                        if not file1 or not file2 or not file3 or not file4 or not file5 or not file7 or not file8 or not file9:
                             continue
                         time.sleep(1)
-                        logging.info("发送: %s", str(obj1.key))
+                        logging.info("发送:%s", str(obj1.key))
                         # 1 获取json内容
                         json_content = bucket.get_object(str(obj1.key)).read()
                         # 2 获取token