Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

>= and <= filters exposed to frontend #77

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bones/bone.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,12 @@ def fromShortKey( key ):
continue
if tmpdata[1]=="lt":
dbFilter.filter( (prefix or "")+tmpdata[0] + " <" , value )
if tmpdata[1]=="le":
tsteinruecken marked this conversation as resolved.
Show resolved Hide resolved
dbFilter.filter( (prefix or "")+tmpdata[0] + " <=" , value )
elif tmpdata[1]=="gt":
dbFilter.filter( (prefix or "")+tmpdata[0] + " >", value )
elif tmpdata[1]=="ge":
dbFilter.filter( (prefix or "")+tmpdata[0] + " >=", value )
elif tmpdata[1]=="lk":
dbFilter.filter( (prefix or "")+tmpdata[0], value )
else:
Expand Down