-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix bill_text template #399
Conversation
@@ -96,15 +96,6 @@ def clean_html(text): | |||
return re.sub(r"&(?:\w+|#\d+);", "", value) | |||
|
|||
|
|||
@register.filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this filter was only used in bill_text.txt and we aren't using it anymore.
@@ -60,9 +57,6 @@ def prepare(self, obj): | |||
|
|||
return data | |||
|
|||
def prepare_topics(self, obj): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can get it more directly with model_attr
source_url = indexes.CharField(model_attr="sources__url", indexed=False) | ||
source_note = indexes.CharField(model_attr="sources__note") | ||
abstract = indexes.CharField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is always empty for chicago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
This had some out of date references which was causing the full text search to miss bills like in #388.
closes #388
I also added a management command to preview the content that will be search to the search enginge.
Before the changes this is what would have been sent:
and with the fixes, this what will be sent now: