diff --git a/datasources/gab/search_gab.py b/datasources/gab/search_gab.py index 967030870..4b200b667 100644 --- a/datasources/gab/search_gab.py +++ b/datasources/gab/search_gab.py @@ -2,9 +2,9 @@ Import scraped Gab data """ import datetime -import re from backend.lib.search import Search +from common.lib.item_mapping import MappedItem class SearchGab(Search): @@ -79,4 +79,4 @@ def map_item(post): "timestamp": post_time.strftime("%Y-%m-%d %H:%M:%S") } - return mapped_item + return MappedItem(mapped_item) diff --git a/webtool/templates/components/result-child.html b/webtool/templates/components/result-child.html index 5d4ff2bef..4b0b16588 100644 --- a/webtool/templates/components/result-child.html +++ b/webtool/templates/components/result-child.html @@ -143,7 +143,7 @@

{{ processors[item.type].title if not deprecated else "(Deprecated analysis) {# 'More' button to show further analysis and preview #}
- {% if current_user.is_authenticated and item.is_finished() and (item.children or (item.num_rows > 0 and item.get_available_processors(exclude_hidden=True))) %} + {% if item.is_finished() and (item.children or (item.num_rows > 0 and current_user.is_authenticated and item.get_available_processors(exclude_hidden=True))) %}