Explorar el Código

Fix sorting on numerical columns

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

+ 2
- 0
archivebot-jobs Ver fichero

@@ -162,6 +162,8 @@ if True: # For sensible indentation
"^": lambda a, b: a.startswith(b),
"$": lambda a, b: a.endswith(b),
}[filterDict["op"]]
if isinstance(jobs[0][columnIdx], (int, float)):
filterDict["value"] = float(filterDict["value"])
jobs = [job for job in jobs if compFunc(job[columnIdx], filterDict["value"])]

# Sort


Cargando…
Cancelar
Guardar