[odrs-web/production] trivial: Fix the distros graph on python2



commit 5cd58e70c73e66ef4ead1ca80a4415baca26c162
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 26 14:45:02 2016 +0100

    trivial: Fix the distros graph on python2

 admin.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/admin.py b/admin.py
index 0797956..e206989 100644
--- a/admin.py
+++ b/admin.py
@@ -164,7 +164,7 @@ def distros():
         for suffix in [' Linux', ' GNU/Linux', ' OS', ' Linux']:
             if name.endswith(suffix):
                 name = name[:-len(suffix)]
-        labels.append(name)
+        labels.append(str(name))
         data.append(s[1])
     return render_template('distros.html', labels=labels, data=data)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]