diff --git a/tmgdsp.py b/tmgdsp.py index 5fa4ad0..e031efa 100644 --- a/tmgdsp.py +++ b/tmgdsp.py @@ -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()