Fix total plays graph

* arrow.timestamp() function instead of attribute
This commit is contained in:
JonnyWong16 2021-10-16 11:30:03 -07:00
commit 5fd17040be
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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()):