18 lines
649 B
Python
18 lines
649 B
Python
from application import Application
|
|
|
|
import sqlite3
|
|
|
|
with sqlite3.connect("../database.db") as connection:
|
|
cursor = connection.cursor()
|
|
applications = []
|
|
|
|
print("This week's Application decisions:")
|
|
cursor.execute("SELECT reference FROM applications WHERE dateScraped >= '2025-06-23' ORDER BY dateDecided DESC")
|
|
|
|
# print("Chris' Applications:")
|
|
# cursor.execute("SELECT reference FROM applications WHERE caseOfficer = 'Christopher Masters' ORDER BY dateDecided DESC")
|
|
|
|
for (application_ref,) in cursor.fetchall():
|
|
applications.append(Application(cursor, application_ref))
|
|
|
|
Application.PrintTable(applications) |