From c28d403186bc4d342e27a5fd112fed635a0ce7f0 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 8 Aug 2015 13:34:36 +0200 Subject: [PATCH] Graphs now have the option to show duration as well as play count. --- data/interfaces/default/graphs.html | 133 ++++- .../default/js/graphs/plays_by_day.js | 9 - .../default/js/graphs/plays_by_dayofweek.js | 2 +- .../default/js/graphs/plays_by_hourofday.js | 2 +- .../default/js/graphs/plays_by_month.js | 9 - .../default/js/graphs/plays_by_platform.js | 2 +- .../default/js/graphs/plays_by_user.js | 2 +- .../default/js/moment-duration-format.js | 482 ++++++++++++++++++ plexpy/graphs.py | 234 ++++++--- plexpy/webserve.py | 24 +- 10 files changed, 773 insertions(+), 126 deletions(-) create mode 100755 data/interfaces/default/js/moment-duration-format.js diff --git a/data/interfaces/default/graphs.html b/data/interfaces/default/graphs.html index 734a3fbe..26378e79 100644 --- a/data/interfaces/default/graphs.html +++ b/data/interfaces/default/graphs.html @@ -10,6 +10,14 @@ Graphs