From ec8945888dcb04982c89f41b31b982979634d749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1=C4=8Dek?= Date: Tue, 12 Apr 2022 16:14:45 +0200 Subject: [PATCH] had to change delimiter in sim state --- vfgdsp_final.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vfgdsp_final.py b/vfgdsp_final.py index 1f12cd8..766db93 100644 --- a/vfgdsp_final.py +++ b/vfgdsp_final.py @@ -93,7 +93,7 @@ with open(FILE2, newline='', encoding="utf-8") as csvfile2: imsi2 = int(row['IMSI']) iccid2 = int(row['ICCID']) msisdn = int(row['MSISDN']) - simstate = (row['SIM State']) + simstate = (row['SIM_State']) if iccid2 in dict_by_iccid: print("iccid: ", iccid2, " already exists, doing the math") @@ -193,8 +193,8 @@ with open('output_VFGDSP_' + ext_date_from_filaname, 'w', newline='') as csv_fil csv_file4.close() -with open("output_VFGDSP_202202.csv", "rb") as f: - webhook.add_file(file=f.read(), filename='output_VFGDSP_202202.csv') +with open('output_VFGDSP_'+ext_date_from_filaname, "rb") as f: + webhook.add_file(file=f.read(), filename='output_VFGDSP_'+ext_date_from_filaname) response = webhook.execute()