瀏覽代碼

Highlight jobs that have been inactive for over 6 hours

master
JustAnotherArchivist 4 年之前
父節點
當前提交
711e444e8e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      archivebot-jobs

+ 1
- 1
archivebot-jobs 查看文件

@@ -123,7 +123,7 @@ if True: # For sensible indentation

def coloured_time_ago(diff):
if diff >= 300:
return "\x1b[0;31m" + time_ago(diff) + "\x1b[0m"
return f"\x1b[{0 if diff < 6 * 3600 else 7};31m" + time_ago(diff) + "\x1b[0m"
else:
return time_ago(diff)



Loading…
取消
儲存