Files @ 6fa658082c8e
Branch filter:

Location: kallithea/docs/readme.rst - annotation

6fa658082c8e 42 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Mads Kiilerich
summary: compute lang_stats consistently

Visiting a /statistics with py3 would fail with:
... in statistics
sorted(lang_stats, reverse=True, key=lambda k: k[1])[:10]
TypeError: '<' not supported between instances of 'dict' and 'dict'

The "summary" computation didn't have that problem. And it put '?' as
description for unknown extensions. And it had stable output as it also sorted
on the file extension as secondary key. Just use that.
1
2
3
.. _readme:

.. include:: ./../README.rst