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