changes of .env file

This commit is contained in:
2026-01-21 22:59:36 +05:30
parent 40fc148287
commit 7bdcee0656
18 changed files with 98 additions and 72 deletions

View File

@@ -24,8 +24,6 @@ class ITRHandler:
# GET ALL ITR RECORDS using stored procedure "GetAllItr"
def get_all_itr(self):
# self.cursor = conn.cursor(dictionary=True)
self.cursor.callproc("GetAllItr")
records = []
for result in self.cursor.stored_results():
@@ -80,9 +78,6 @@ class ITRHandler:
]
values = [id] + [data.get(col, 0) for col in columns]
print("Final values:", values)
self.cursor.callproc("UpdateITR", values)
self.conn.commit()
@@ -95,7 +90,6 @@ class ITRHandler:
# report download by year
def itr_report_download(self, selected_year):
try:
# Call stored procedure
self.cursor.callproc("GetITRByYear", [selected_year])
@@ -109,14 +103,10 @@ class ITRHandler:
# Convert SQL rows to DataFrame
df = pd.DataFrame(rows)
# Transpose
df_transposed = df.transpose()
df_transposed.insert(0, 'Field', df_transposed.index)
print("df-->",df_transposed)
record_cols = {
i: f"Record {i}"
for i in df_transposed.columns if isinstance(i, int)
@@ -139,7 +129,6 @@ class ITRHandler:
print("MySQL Error →", e)
return None
# CLOSE CONNECTION
def close(self):
self.cursor.close()