From 8931e1a0d978a3227892de4272c0673b1041c118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1=C4=8Dek?= Date: Thu, 2 Mar 2023 22:11:19 +0100 Subject: [PATCH] Just a version number raised --- main.py | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index aa0af1b..ba34f20 100644 --- a/main.py +++ b/main.py @@ -18,10 +18,19 @@ import cnb_exchange_rate from tktooltip import ToolTip -ver = "0.4.9" +ver = "0.5.2" outvar = {} +def convertExcelToCSV(): + print("Converting Excel to CSV") + files = glob.glob("*.xlsx") + for f in files: + print(f) + df = pd.read_excel(f) + df.to_csv(f.replace(".xlsx", ".csv"), index=False) + os.remove(f) + print("Done") def getCNBRates(): current_month = datetime.now().strftime('%m') @@ -272,6 +281,7 @@ def pairBis(): print("MSISDN: ", MSISDN) IMSI = completepairing[MSISDN]['IMSI'] + ICCID = completepairing[MSISDN]['ICCID'] DATAPRICE = completepairing[MSISDN]['DATA-PRICE'] DATAAMOUNT = completepairing[MSISDN]['DATA-AMOUNT'] SMSPRICE = completepairing[MSISDN]['SMS-PRICE'] @@ -337,6 +347,7 @@ def merge(): # tmcz_convertids convert_tmcz = {} + with open('./help_files/TMCZ_IMSI.csv', 'r') as file: reader =csv.DictReader(file, delimiter=';') for row in reader: @@ -979,11 +990,11 @@ root.config(menu=menubar) b1.place(x=450, y=60) -b2.place(x=450, y=90) -b3.place(x=450, y=120) -b4.place(x=450, y=150) -buttonnewwindow.place(x=450, y=180) -pairbis.place(x=450, y=210) +b2.place(x=450, y=120) +b3.place(x=450, y=150) +b4.place(x=450, y=90) +buttonnewwindow.place(x=450, y=210) +pairbis.place(x=450, y=180) versionlabel = tk.Label(root,text=ver)