descartes load -- possibly all before show

This commit is contained in:
gauthiier
2020-12-15 17:54:05 +01:00
parent 56aab9e545
commit 696378ebe0
11 changed files with 20174 additions and 24 deletions
+4 -4
View File
@@ -132,9 +132,9 @@ class DB:
try:
cursor = self.db_con.cursor(buffered=True)
if bool:
cursor.execute(db.sql.CONTENT_QUERY_BOOLEAN.format(self.archive_name, term))
cursor.execute(db.sql.CONTENT_QUERY_BOOLEAN.format(term))
else:
cursor.execute(db.sql.CONTENT_QUERY.format(self.archive_name, term))
cursor.execute(db.sql.CONTENT_QUERY.format(term))
# nbr_, author_name_, to_, subject_, date_, url_
results = []
@@ -157,9 +157,9 @@ class DB:
try:
cursor = self.db_con.cursor(buffered=True)
if bool:
cursor.execute(archive.sql.FROM_QUERY_BOOLEAN.format(self.archive_name, term))
cursor.execute(db.sql.FROM_QUERY_BOOLEAN.format(term))
else:
cursor.execute(archive.sql.FROM_QUERY.format(self.archive_name, term))
cursor.execute(db.sql.FROM_QUERY.format(term))
# print(cursor.rowcount)
results = []