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()