descartes load -- possibly all before show
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user