Fixed setup.py error on filter use as a keyword

This commit is contained in:
Fabio Manganiello 2019-02-17 16:30:43 +01:00
parent a21a11d499
commit 2213455eff

View file

@ -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 = {