Commit 27b80331 authored by Krisjanis Rijnieks's avatar Krisjanis Rijnieks 🔥

Attempt to fix sort again

parent 932e223c
Pipeline #134472 passed with stage
in 34 seconds
......@@ -78,9 +78,12 @@ if __name__ == '__main__':
print('Loading stats')
start = time.time()
stats = pool.map(get_stats, students)
# Remove empty elements if any
stats = list(filter(None, stats))
end = time.time()
print('Done. Stats loaded in %ds' % (end - start))
print(stats)
print('\n')
output = []
......@@ -89,10 +92,10 @@ if __name__ == '__main__':
output.append('------------------')
output.append('Also see [Gitlab pages size](./fs.md)')
output.append('')
#by_repo = sorted(stats, key=lambda student: int(student['repo_size']))
by_repo = sorted(stats, key=lambda student: int(student['repo_size']), reverse=True)
#by_repo = sorted(stats)
#by_repo.reverse()
by_repo = stats
#by_repo = stats
output.append('pos|username|size|continuing')
output.append('---|--------|----|----------')
idx=1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment