5 Commits

Author SHA1 Message Date
46f3541842 add operator to output file 2022-06-08 15:57:39 +02:00
Martin Fencl
df6913291f test 2022-04-25 13:34:03 +02:00
6e3a1a3d36 +420 2022-04-20 08:59:12 +02:00
b2776b39b9 test with tag 2022-04-15 03:19:58 +02:00
2a732133be create production version 2022-04-15 03:13:07 +02:00
2 changed files with 26 additions and 24 deletions

1
test.txt Normal file
View File

@@ -0,0 +1 @@
test

View File

@@ -168,7 +168,31 @@ with open(FILE, newline='', encoding="utf-8") as csvfile:
#try:
#print(dictionary[436761890319959]) #one with both types
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", "OPERATOR"])
for key in dictionary.keys():
print(key)
print(dictionary[key])
data = dictionary[key]['data']
sms = dictionary[key]['sms']
other = dictionary[key]['other']
smscount = dictionary[key]['smscount']
dataamount = dictionary[key]['dataamount']
dataamount = dictionary[key]['dataamount']
writer.writerow(["420"+str(key), "N/A", "N/A", data, dataamount, sms, smscount, other, "N/A", "TMCZ"])
f.close()
#[436761890319959]) #one with both types
#except:
#print("Required unit is not in our set")
#sys.exit(1)
@@ -183,29 +207,6 @@ print("Count of units: ", len(dictionary.keys()))
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"])
for key in dictionary.keys():
print(key)
print(dictionary[key])
data = dictionary[key]['data']
sms = dictionary[key]['sms']
other = dictionary[key]['other']
smscount = dictionary[key]['smscount']
dataamount = dictionary[key]['dataamount']
writer.writerow([key, "N/A", "N/A", data, dataamount, sms, smscount, other, "N/A"])
f.close()
with open('output_TMCZ_'+ext_date_from_filaname, "rb") as f: