diff --git a/platypush/plugins/media/search/local.py b/platypush/plugins/media/search/local.py index 204f39daa..046ad9f23 100644 --- a/platypush/plugins/media/search/local.py +++ b/platypush/plugins/media/search/local.py @@ -99,6 +99,7 @@ class LocalMediaSearcher(MediaSearcher): continue record = MediaToken.build(token=token) session.add(record) + records[token] = record session.commit() return session.query(MediaToken).filter(