From 6d5791c92cd487c13517cdb736c07dfc8df424d4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 13 Mar 2009 06:13:26 +0900 Subject: [PATCH] fix problem dropping unique index --- ankiqt/ui/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 06b7c3133..b18a18fcc 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1475,7 +1475,8 @@ day = :d""", d=yesterday) self.deck.updateProgress() # remove indices indices = d.s.column0( - "select name from sqlite_master where type = 'index'") + "select name from sqlite_master where type = 'index' " + "and sql != ''") for i in indices: d.s.statement("drop index %s" % i) # and q/a cache