done
This commit is contained in:
@@ -173,10 +173,10 @@ print("Count of units: ", len(dictionary.keys()))
|
|||||||
# f.write("%s,%s\n"%(key,dictionary[key]))
|
# 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 = 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():
|
for key in dictionary.keys():
|
||||||
# Getting all required variables to write them into export
|
# 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("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])
|
writer.writerow([MSISDN, ICCID, IMSI, data_price, data_amount, sms_price, sms_count, other_price, "N/A"])
|
||||||
|
|
||||||
csvfile.close()
|
csvfile.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user