add operator to output file

This commit is contained in:
2022-06-08 15:18:08 +02:00
parent 374a617b1f
commit 25190cfeed

View File

@@ -182,7 +182,7 @@ print("Count of units: ", len(dictionary.keys()))
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","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():
# Getting all required variables to write them into export
@@ -203,7 +203,7 @@ with open('output_TMGDSP_'+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, "N/A"])
writer.writerow([MSISDN, ICCID, IMSI, data_price, data_amount, sms_price, sms_count, other_price, "N/A", "TMGDSP"])
csvfile.close()