Qilan2 commited on
Commit
4288bfc
·
verified ·
1 Parent(s): 00ce717

Update server10.py

Browse files
Files changed (1) hide show
  1. server10.py +1 -1
server10.py CHANGED
@@ -458,7 +458,7 @@ if os.path.exists(f'/data/{huggingface_Data_name}.zip'):
458
  # 检查是否是中国时区早上6点
459
  china_tz = pytz.timezone('Asia/Shanghai')
460
  now = datetime.now(china_tz)
461
- if now.hour == 6 and now.minute < 10: # 6:00-6:05之间退出
462
  print(f"当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}, 到达早上6点,退出循环")
463
  break
464
  else:
 
458
  # 检查是否是中国时区早上6点
459
  china_tz = pytz.timezone('Asia/Shanghai')
460
  now = datetime.now(china_tz)
461
+ if now.hour == 6 and now.minute < 5: # 6:00-6:05之间退出
462
  print(f"当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}, 到达早上6点,退出循环")
463
  break
464
  else: