Sfoglia il codice sorgente

Highlight jobs that have been inactive for over 6 hours

master
JustAnotherArchivist 4 anni fa
parent
commit
711e444e8e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      archivebot-jobs

+ 1
- 1
archivebot-jobs Vedi File

@@ -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)



Caricamento…
Annulla
Salva