add operator to output file
This commit is contained in:
@@ -155,7 +155,7 @@ print("Count of units: ", len(dictionary.keys()))
|
||||
with open('output_VFCZ_'+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])
|
||||
@@ -167,9 +167,9 @@ with open('output_VFCZ_'+ext_date_from_filaname, 'w') as f:
|
||||
|
||||
|
||||
|
||||
writer.writerow([key, "N/A", "N/A", round(float(data)), round(float(dataamount), 2), sms, smscount, other, "N/A"])
|
||||
writer.writerow([key, "N/A", "N/A", round(float(data)), round(float(dataamount), 2), sms, smscount, other, "N/A", "VFCZ"])
|
||||
|
||||
|
||||
sys.exit()
|
||||
with open('output_VFCZ_'+ext_date_from_filaname, "rb") as f:
|
||||
webhook.add_file(file=f.read(), filename='output_VFCZ_'+ext_date_from_filaname)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user