Procházet zdrojové kódy

Suppress output if there are no matched jobs

master
JustAnotherArchivist před 4 roky
rodič
revize
4a742162d0
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. +3
    -0
      archivebot-jobs

+ 3
- 0
archivebot-jobs Zobrazit soubor

@@ -177,6 +177,9 @@ if True: # For sensible indentation
transform = lambda x: x.lower() if "'${filtercaseinsensitive}'" and isinstance(x, str) else x
jobs = [job for job in jobs if compFunc(transform(job[columnIdx]), transform(filterDict["value"]))]

if not jobs:
sys.exit(0)

# Sort
class reversor: # https://stackoverflow.com/a/56842689
def __init__(self, obj):


Načítá se…
Zrušit
Uložit