Explorar el Código

Highlight jobs that have been inactive for over 6 hours

master
JustAnotherArchivist hace 4 años
padre
commit
711e444e8e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      archivebot-jobs

+ 1
- 1
archivebot-jobs Ver fichero

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



Cargando…
Cancelar
Guardar