fix fid queries

This commit is contained in:
Damien Elmes 2010-10-29 19:41:40 +09:00
parent 621d11a6da
commit 2967819882

View file

@ -2220,7 +2220,7 @@ where id = :id""", pending)
elif token['value'].startswith("is:"):
token['value'] = token['value'][3:].lower()
type = SEARCH_TYPE
elif token['value'].startswith("fid:") and len(token) > 4:
elif token['value'].startswith("fid:") and len(token['value']) > 4:
dec = token['value'][4:]
try:
int(dec)