diff --git a/modules/cache.py b/modules/cache.py index 905598ce..9bdf82a6 100644 --- a/modules/cache.py +++ b/modules/cache.py @@ -148,7 +148,7 @@ class Cache: expired = time_between_insertion.days > self.expiration return id_to_return, expired - def _update_map(self, map_name, val1, val1_name, val2, val2_name, expired, media_type=None): + def _update_map(self, map_name, val1_name, val1, val2_name, val2, expired, media_type=None): expiration_date = datetime.now() if expired is True else (datetime.now() - timedelta(days=random.randint(1, self.expiration))) with sqlite3.connect(self.cache_path) as connection: connection.row_factory = sqlite3.Row diff --git a/plex_meta_manager.py b/plex_meta_manager.py index ccdf975a..aec2e36d 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -2,7 +2,7 @@ import argparse, logging, os, re, sys, time from datetime import datetime try: import schedule - from modules import tests, util + from modules import util from modules.builder import CollectionBuilder from modules.config import Config from modules.util import Failed @@ -77,7 +77,7 @@ file_handler.setFormatter(logging.Formatter("[%(asctime)s] %(filename)-27s %(lev cmd_handler = logging.StreamHandler() cmd_handler.setFormatter(logging.Formatter("| %(message)-100s |")) -cmd_handler.setLevel(logging.DEBUG if my_tests or test or debug else logging.INFO) +cmd_handler.setLevel(logging.DEBUG if test or debug else logging.INFO) logger.addHandler(cmd_handler) logger.addHandler(file_handler)