|
|
|
@ -25,7 +25,11 @@ def get_rank_thing(filename, **kwargs):
|
|
|
|
|
reader.next() |
|
|
|
|
for r in reader: |
|
|
|
|
mn, rank_no = r[0], r[9] |
|
|
|
|
w = [r[10], r[11], r[12], r[13], r[14]] |
|
|
|
|
w = [ |
|
|
|
|
r[1], r[2], r[3], r[4], r[5], r[6], r[7], r[8], # July 1 |
|
|
|
|
rank_no, # July 1 |
|
|
|
|
r[10], r[11], r[12], r[13], r[14] |
|
|
|
|
] |
|
|
|
|
q = ( |
|
|
|
|
('A', r[1]), ('B', r[2]), ('C', r[3]), ('D', r[4]), |
|
|
|
|
('E', r[5]), ('F', r[6]), ('G', r[7]), ('H', r[8]), |
|
|
|
@ -36,7 +40,12 @@ def get_rank_thing(filename, **kwargs):
|
|
|
|
|
if result: |
|
|
|
|
# print(u'%s > %s' % (r[0], list(result))) |
|
|
|
|
count += 1 |
|
|
|
|
owriter.writerow([mn, ','.join(list(result)), rank_no] + w) |
|
|
|
|
owriter.writerow([ |
|
|
|
|
mn, |
|
|
|
|
','.join(list(result)), |
|
|
|
|
len(result), |
|
|
|
|
# rank_no |
|
|
|
|
] + w) |
|
|
|
|
if rank_no not in model_count[mn]: |
|
|
|
|
model_count[mn][rank_no] = set() |
|
|
|
|
model_count[mn][rank_no] = model_count[mn][rank_no].union(result) |
|
|
|
|