show deleted comments when they are referenced

This commit is contained in:
posativ 2012-10-25 20:45:19 +02:00
parent 35310300ac
commit 6f4b02ab12

View File

@ -158,7 +158,7 @@ class SQLite(Abstract):
(None, path, id))
return self.get(path, id)
def retrieve(self, path, mode=1):
def retrieve(self, path, mode=5):
with sqlite3.connect(self.dbpath) as con:
rv = con.execute("SELECT * FROM comments WHERE path=? AND (? | mode) = ?" \
+ " ORDER BY id ASC;", (path, mode, mode)).fetchall()