From 89486d7c979460ae7be09232f671261662e73aba Mon Sep 17 00:00:00 2001 From: "Christopher T. Johnson" Date: Tue, 25 Feb 2025 17:30:07 -0500 Subject: [PATCH] Remove extra prints from workers. Fixes: #15 --- workers.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/workers.py b/workers.py index 068b1f9..67fddb1 100644 --- a/workers.py +++ b/workers.py @@ -80,7 +80,6 @@ def update_proceedings( if not query.exec(): query_error(query) assert isinstance(text, str) - print(f"text: {text.lower()}") # # If cert is denied, a petion for rehearing can be requested. # The petitioner has 40 days to file for a rehearing. @@ -156,9 +155,7 @@ def update_db(case_id: str, db: QSqlDatabase) -> int: assert isinstance(tmp, str) matches = re.match(r"(No.)?\s*(\d+[-A]\d+).*$", tmp) assert matches is not None - print(matches, matches.groups()) docket_id = matches.group(2) - print(f"Found {docket_id}") # # Title is second row, first column @@ -288,7 +285,6 @@ class updateThread(QThread): def __init__(self) -> None: super(updateThread, self).__init__() - print("updateThread: __init__(docket_id)") return def setDocketId(self, docket_id: str) -> None: @@ -296,7 +292,6 @@ class updateThread(QThread): return def run(self) -> None: - print(f"updateThread: running on {self.currentThread()}") db = QSqlDatabase.cloneDatabase("qt_sql_default_connection", "update") if not db.open(): print(db.lastError()) @@ -306,7 +301,6 @@ class updateThread(QThread): db.close() del db QSqlDatabase.removeDatabase("update") - print(f"updateThread: run() returns {case_id}") return @@ -322,7 +316,6 @@ class loadCases(QThread): query = QSqlQuery(db) query.prepare("SELECT * FROM history WHERE year = :year") - print(f"year = {self.year}") query.bindValue(":year", self.year) if not query.exec(): query_error(query) @@ -356,11 +349,9 @@ class loadCases(QThread): query_error(query) if query.next(): if query.value("active") == 0: - print("Already exists and is inactive") self.number += 1 continue result = update_db(docket_id, db) - print(f"result: {result}") if result < 0: self.year = f"{int(self.year) - 1:02d}" if self.number > 1: @@ -373,7 +364,6 @@ class loadCases(QThread): query_error(query) query.prepare("SELECT * FROM history WHERE year = :year") - print(f"year = {self.year}") query.bindValue(":year", self.year) if not query.exec(): query_error(query)