Commits

Ryan Tracey committed 48509f5

pozi codes

  • Participants
  • Parent commits 1be5b7b

Comments (0)

Files changed (1)

 import csv
 import random
 
+# e.g. *120*1759*989666#
+
 taverns = open('taverns.csv','r').readlines()
 taverns = [tav.split(',') for tav in taverns]
 taverns = [[item.strip() for item in line] for line in taverns]
         return mkcode()
     else:
         masterlist.append(code)
-        return code
+        return '*120*1759*%d#' % (code,)
 
 tavcodes = [['InTouch Number','Customer Number','Tavern Name',
              'Owners Full Name','SIM Card Number','Network','Code']]
 
 
 f = open('taverncodes.csv', 'w')
-csv_writer = csv.writer(f, quoting=csv.QUOTE_NONNUMERIC)
+csv_writer = csv.writer(f, quoting=csv.QUOTE_NONE)
 csv_writer.writerows(tavcodes)
 f.close()