From 5fd17040beb60230bddfca9e27159c5ba1ae46b6 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 16 Oct 2021 11:30:03 -0700 Subject: [PATCH] Fix total plays graph * arrow.timestamp() function instead of attribute --- plexpy/graphs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/graphs.py b/plexpy/graphs.py index 496a44e5..e9afa704 100644 --- a/plexpy/graphs.py +++ b/plexpy/graphs.py @@ -425,7 +425,7 @@ class Graphs(object): monitor_db = database.MonitorDatabase() time_range = helpers.cast_to_int(time_range) or 12 - timestamp = arrow.get(helpers.timestamp()).shift(months=-time_range).floor('month').timestamp + timestamp = arrow.get(helpers.timestamp()).shift(months=-time_range).floor('month').timestamp() user_cond = '' if session.get_session_user_id() and user_id and user_id != str(session.get_session_user_id()):