From 2213455eff20734c7d08506f7a63d4e5bfdc9f10 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 17 Feb 2019 16:30:43 +0100 Subject: [PATCH] Fixed setup.py error on filter use as a keyword --- platypush/plugins/media/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/media/local.py b/platypush/plugins/media/local.py index 7a38741cd..1a0f0e6ed 100644 --- a/platypush/plugins/media/local.py +++ b/platypush/plugins/media/local.py @@ -128,8 +128,8 @@ class LocalMediaSearcher: if not os.path.isdir(media_dir): self.logger.info('Directory {} is no longer accessible, removing it'. format(media_dir)) - session.query(MediaDirectory). \ - filter(MediaDirectory.path=media_dir).delete() + session.query(MediaDirectory) \ + .filter(MediaDirectory.path=media_dir).delete() return stored_file_records = {