This commit is contained in:
2022-04-12 14:18:35 +02:00
parent e6b35a8043
commit a0c7651bf3

View File

@@ -173,10 +173,10 @@ print("Count of units: ", len(dictionary.keys()))
# f.write("%s,%s\n"%(key,dictionary[key]))
with open('TMGDSP_output_'+ext_date_from_filaname, 'w') as f:
with open('output_TMGDSP_'+ext_date_from_filaname, 'w') as f:
writer = csv.writer(f)
writer.writerow(["MSISDN","ICCID","IMSI","DATA-PRICE","DATA-AMOUNT","SMS-PRICE","SMSCOUNT","OTHER-PRICE"])
writer.writerow(["MSISDN","ICCID","IMSI","DATA-PRICE","DATA-AMOUNT","SMS-PRICE","SMS-COUNT","OTHER-PRICE","SIM-STATUS"])
for key in dictionary.keys():
# Getting all required variables to write them into export
@@ -197,7 +197,7 @@ with open('TMGDSP_output_'+ext_date_from_filaname, 'w') as f:
print("data_price: ", data_price)
print("sms_price: ", sms_price)
print("sms_count: ", sms_count)
writer.writerow([MSISDN, ICCID, IMSI, data_price, data_amount, sms_price, sms_count, other_price])
writer.writerow([MSISDN, ICCID, IMSI, data_price, data_amount, sms_price, sms_count, other_price, "N/A"])
csvfile.close()