Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 3c22106e

Přidáno uživatelem Matěj Zeman před téměř 3 roky(ů)

re #9846 Fixed filter bug

Zobrazit rozdíly:

server/sql_app/crud.py
965 965
            for l in dev_lics:
966 966
                lic_ids += str(l.device_id) + ", "
967 967
            def_lic_ids = lic_ids[:-2] + ")"
968
            if len(def_lic_ids) < 1:
968
            if len(def_lic_ids) <= 1:
969 969
                def_lic_ids = "(-1)"
970 970
            if before_me:
971 971
                execute_string += " AND device.id IN " + def_lic_ids
......
987 987
            for lic in licen_devs:
988 988
                ids += str(lic.device_id) + ", "
989 989
            def_ids = ids[:-2] + ")"
990
            if len(def_ids) < 1:
990
            if len(def_ids) <= 1:
991 991
                def_ids = "(-1)"
992 992
            if before_me:
993 993
                execute_string += " AND device.id IN " + def_ids

Také k dispozici: Unified diff