diff --git a/server/mhn/common/clio.py b/server/mhn/common/clio.py index 385fc2aa..5b51d0ce 100644 --- a/server/mhn/common/clio.py +++ b/server/mhn/common/clio.py @@ -90,6 +90,11 @@ def _clean_query(cls, dirty): '$gte': datetime.datetime.utcnow() - datetime.timedelta(hours=int(dirty['hours_ago'])) } + if 'payload' in dirty and 'payload' in clean: + queryObj = 'payload.' + dirty.get('column') + clean[queryObj] = dirty.get('payload') + del clean['payload'] + return clean @classmethod diff --git a/server/mhn/templates/ui/feeds.html b/server/mhn/templates/ui/feeds.html index 6f58feb6..f9d906bb 100644 --- a/server/mhn/templates/ui/feeds.html +++ b/server/mhn/templates/ui/feeds.html @@ -15,23 +15,36 @@