changes
This commit is contained in:
@@ -23,7 +23,7 @@ def generate_report():
|
||||
report_path = os.path.join(config.report.path, f"report_{year}_{week}.tsv")
|
||||
day = QDate.currentDate().addDays(-7).toString("yyyy-MM-dd")
|
||||
query = f"""SELECT * FROM loans WHERE loan_date >= '{day}';"""
|
||||
# print(query)
|
||||
#print(query)
|
||||
|
||||
colnames = ["UserId", "Title", "Action", "Datum"]
|
||||
table = PrettyTable(colnames)
|
||||
@@ -49,7 +49,7 @@ def generate_report():
|
||||
loan_action_date,
|
||||
]
|
||||
)
|
||||
# # print(table)
|
||||
# #print(table)
|
||||
# # wruitng the table to a file
|
||||
# with open("report.txt", "w", encoding="utf-8") as f:
|
||||
# f.write(str(table))
|
||||
|
||||
Reference in New Issue
Block a user