add operator to output file
This commit is contained in:
@@ -182,7 +182,7 @@ print("Count of units: ", len(dictionary.keys()))
|
|||||||
with open('output_TMGDSP_'+ext_date_from_filaname, 'w') as f:
|
with open('output_TMGDSP_'+ext_date_from_filaname, 'w') as f:
|
||||||
|
|
||||||
writer = csv.writer(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():
|
for key in dictionary.keys():
|
||||||
# Getting all required variables to write them into export
|
# 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("data_price: ", data_price)
|
||||||
print("sms_price: ", sms_price)
|
print("sms_price: ", sms_price)
|
||||||
print("sms_count: ", sms_count)
|
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()
|
csvfile.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user