From 5609960d6a894931cb19ee311c39e55ab2e6f18f Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 15 Mar 2021 12:01:49 -0700 Subject: [PATCH] Formatting cleanup --- plexpy/datafactory.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plexpy/datafactory.py b/plexpy/datafactory.py index 573ae104..dbec4e67 100644 --- a/plexpy/datafactory.py +++ b/plexpy/datafactory.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # This file is part of Tautulli. # @@ -895,9 +895,9 @@ class DataFactory(object): try: query = 'SELECT section_id, section_name, section_type, thumb AS library_thumb, ' \ - 'custom_thumb_url AS custom_thumb, art AS library_art, custom_art_url AS custom_art ' \ - 'FROM library_sections ' \ - 'WHERE deleted_section = 0' + 'custom_thumb_url AS custom_thumb, art AS library_art, custom_art_url AS custom_art ' \ + 'FROM library_sections ' \ + 'WHERE deleted_section = 0' result = monitor_db.select(query) except Exception as e: @@ -907,7 +907,8 @@ class DataFactory(object): library_data = libraries.Libraries() for item in result: - library_item = library_data.get_watch_time_stats(section_id=item['section_id'], grouping=None , query_days=time_range) + library_item = library_data.get_watch_time_stats(section_id=item['section_id'], + query_days=time_range) if not library_item or library_item[0]['total_plays'] == 0 and library_item[0]['total_time'] == 0: continue