- Sort Implemented/Missing Set Lists before printing them out

This commit is contained in:
jendave
2011-08-06 10:58:27 +00:00
parent c9260d5f88
commit e415330f41

View File

@@ -76,6 +76,9 @@ for currentSet in setCodes :
if total > 0 : if total > 0 :
percentage = (float(len(currentImplemented))/float(total))*100 percentage = (float(len(currentImplemented))/float(total))*100
currentMissing.sort()
currentImplemented.sort()
with open(sys.path[0] + "\PerSetTracking Results\set_" + currentSet + ".txt","w") as output : with open(sys.path[0] + "\PerSetTracking Results\set_" + currentSet + ".txt","w") as output :
output.write("Implemented (" + str(len(currentImplemented)) + "):\n") output.write("Implemented (" + str(len(currentImplemented)) + "):\n")
for everyImplemented in currentImplemented : for everyImplemented in currentImplemented :