From 7143c8b3ec3fe704aebfbf721469225851f4dec9 Mon Sep 17 00:00:00 2001 From: Cory Banack Date: Fri, 4 Jan 2019 00:09:51 -0700 Subject: [PATCH] Fixed indentation warnings. --- src/py/database/comicvine/cvdb.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/py/database/comicvine/cvdb.py b/src/py/database/comicvine/cvdb.py index 5e49a83..d434309 100644 --- a/src/py/database/comicvine/cvdb.py +++ b/src/py/database/comicvine/cvdb.py @@ -213,18 +213,19 @@ def __query_series_refs(search_terms_s, callback_function): # and then add them to the returned list. Again, the dom # could contain a single volume, OR a list. if not isinstance(dom.results.volume, list): - if len(series_refs) < __max_search_results: - series_refs.add(__volume_to_seriesref(dom.results.volume)) + if len(series_refs) < __max_search_results: + series_refs.add( + __volume_to_seriesref(dom.results.volume)) else: - for volume in dom.results.volume: - if len(series_refs) < __max_search_results: - series_refs.add( __volume_to_seriesref(volume) ) + for volume in dom.results.volume: + if len(series_refs) < __max_search_results: + series_refs.add( __volume_to_seriesref(volume) ) # 6. Done. series_refs now contained whatever SeriesRefs we could find if not cancelled_b[0] and len( series_refs ) < num_results_n: log.debug("...too many matches, only getting ", "the first ", __max_search_results ) - + return set() if cancelled_b[0] else series_refs