add operator to output file

This commit is contained in:
2022-06-08 15:59:32 +02:00
parent 0ce38b22fd
commit e82354b3ab

View File

@@ -155,7 +155,7 @@ print("Count of units: ", len(dictionary.keys()))
with open('output_VFCZ_'+ext_date_from_filaname, 'w') as f:
writer = csv.writer(f)
writer.writerow(["MSISDN","ICCID","IMSI","DATA-PRICE","DATA-AMOUNT","SMS-PRICE","SMS-COUNT","OTHER-PRICE","SIM-STATUS"])
writer.writerow(["MSISDN","ICCID","IMSI","DATA-PRICE","DATA-AMOUNT","SMS-PRICE","SMS-COUNT","OTHER-PRICE","SIM-STATUS","OPERATOR"])
for key in dictionary.keys():
print(key)
print(dictionary[key])
@@ -167,9 +167,9 @@ with open('output_VFCZ_'+ext_date_from_filaname, 'w') as f:
writer.writerow([key, "N/A", "N/A", round(float(data)), round(float(dataamount), 2), sms, smscount, other, "N/A"])
writer.writerow([key, "N/A", "N/A", round(float(data)), round(float(dataamount), 2), sms, smscount, other, "N/A", "VFCZ"])
sys.exit()
with open('output_VFCZ_'+ext_date_from_filaname, "rb") as f:
webhook.add_file(file=f.read(), filename='output_VFCZ_'+ext_date_from_filaname)