Compare commits

...

2 Commits

Author SHA1 Message Date
e82354b3ab add operator to output file 2022-06-08 15:59:32 +02:00
0ce38b22fd dataamount math fixed on req. by Manik 2022-04-21 11:08:41 +02:00

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,7 +167,7 @@ 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"])
with open('output_VFCZ_'+ext_date_from_filaname, "rb") as f: