add operator to output file
This commit is contained in:
@@ -171,7 +171,7 @@ with open(FILE, newline='', encoding="utf-8") as csvfile:
|
||||
with open('output_TMCZ_'+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])
|
||||
@@ -185,7 +185,7 @@ with open('output_TMCZ_'+ext_date_from_filaname, 'w') as f:
|
||||
|
||||
|
||||
|
||||
writer.writerow(["420"+str(key), "N/A", "N/A", data, dataamount, sms, smscount, other, "N/A"])
|
||||
writer.writerow(["420"+str(key), "N/A", "N/A", data, dataamount, sms, smscount, other, "N/A", "TMCZ"])
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user