Qilan2 commited on
Commit
f33c3f6
·
verified ·
1 Parent(s): 0d76e34

Update server10.py

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