Show More
@@ -64,10 +64,6 b' class AllThreadsView(PostMixin, FileUplo' | |||||
64 | else: |
|
64 | else: | |
65 | threads = threads.filter(multi_replies__opening=True).order_by('-multi_replies__pub_time') |
|
65 | threads = threads.filter(multi_replies__opening=True).order_by('-multi_replies__pub_time') | |
66 | filter = request.GET.get('filter') |
|
66 | filter = request.GET.get('filter') | |
67 | if self.settings_manager.get_setting(SETTING_ONLY_FAVORITES): |
|
|||
68 | fav_tags = self.settings_manager.get_fav_tags() |
|
|||
69 | if len(fav_tags) > 0: |
|
|||
70 | threads = threads.filter(tags__in=fav_tags) |
|
|||
71 | threads = threads.distinct() |
|
67 | threads = threads.distinct() | |
72 |
|
68 | |||
73 | paginator = get_paginator(threads, |
|
69 | paginator = get_paginator(threads, | |
@@ -172,8 +168,14 b' class AllThreadsView(PostMixin, FileUplo' | |||||
172 | Gets list of threads that will be shown on a page. |
|
168 | Gets list of threads that will be shown on a page. | |
173 | """ |
|
169 | """ | |
174 |
|
170 | |||
175 |
|
|
171 | threads = Thread.objects\ | |
176 | .exclude(tags__in=self.settings_manager.get_hidden_tags()) |
|
172 | .exclude(tags__in=self.settings_manager.get_hidden_tags()) | |
|
173 | if self.settings_manager.get_setting(SETTING_ONLY_FAVORITES): | |||
|
174 | fav_tags = self.settings_manager.get_fav_tags() | |||
|
175 | if len(fav_tags) > 0: | |||
|
176 | threads = threads.filter(tags__in=fav_tags) | |||
|
177 | ||||
|
178 | return threads | |||
177 |
|
179 | |||
178 | def get_rss_url(self): |
|
180 | def get_rss_url(self): | |
179 | return self.get_reverse_url() + 'rss/' |
|
181 | return self.get_reverse_url() + 'rss/' |
General Comments 0
You need to be logged in to leave comments.
Login now