From 2967819882bf2538db70ad02a13889c3a0c14d41 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 29 Oct 2010 19:41:40 +0900 Subject: [PATCH] fix fid queries --- anki/deck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/deck.py b/anki/deck.py index f9c7ec284..70a77537a 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -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)