]> git.datanom.net - lensdatabase.git/blobdiff - db.py
Clean up code
[lensdatabase.git] / db.py
diff --git a/db.py b/db.py
index b285ff22579033dce94bc14d5a449b7c69027e8c..0fa2839d7791e70cb8ec73294746a0c8069c1bbf 100644 (file)
--- a/db.py
+++ b/db.py
@@ -113,7 +113,6 @@ class DB:
             lensmaker = cur.fetchone()
         else:
             lensmaker = (maker, )
-        #cur.execute("select sn, description, notes, id from lens where maker = ?", lensmaker)
         cur.execute(sql, lensmaker)
         rows = cur. fetchall()
         return rows        
@@ -130,7 +129,6 @@ class DB:
             lensmaker = cur.fetchone()
         else:
             lensmaker = (maker, )
-        #cur.execute("select sn, description, notes, id from lens where description like ? and maker = ? COLLATE NOCASE", ('%'+pattern+'%', ) + lensmaker)
         cur.execute(sql, ('%'+pattern+'%', ) + lensmaker)
         rows = cur. fetchall()
         return rows        
This page took 0.048437 seconds and 5 git commands to generate.