瀏覽代碼

Bug (temp/horrible )fix in for last scan time get

master
Benito Marcote 1 年之前
父節點
當前提交
b3e5e85480
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      schedgaps.py

+ 4
- 1
schedgaps.py 查看文件

@@ -84,7 +84,10 @@ for i,scope in enumerate(telescopes):
pass


currentTime=(scan[1]+'/'+scan[2])
if ':' in scan[1]:
currentTime=(scan[0]+'/'+scan[1])
else:
currentTime=(scan[1]+'/'+scan[2])
# print(lastGap, currentTime)
tDiff = datetime.strptime(currentTime, '%j/%H:%M:%S') - datetime.strptime(lastGap, '%j/%H:%M:%S')
if tDiff.total_seconds()/60.0 > 15.0:


Loading…
取消
儲存