ソースを参照

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)



読み込み中…
キャンセル
保存