Show More
@@ -93,7 +93,7 b' class NothingDownloader(Downloader):' | |||||
93 | content_type = response_head.headers[HEADER_CONTENT_TYPE].split(';')[0] |
|
93 | content_type = response_head.headers[HEADER_CONTENT_TYPE].split(';')[0] | |
94 | return content_type in TYPE_URL_ONLY |
|
94 | return content_type in TYPE_URL_ONLY | |
95 | else: |
|
95 | else: | |
96 |
return |
|
96 | return False | |
97 |
|
97 | |||
98 | @staticmethod |
|
98 | @staticmethod | |
99 | def download(url: str): |
|
99 | def download(url: str): |
@@ -33,7 +33,7 b' class TripcodeFilter(FeedFilter):' | |||||
33 | filtered_posts = posts |
|
33 | filtered_posts = posts | |
34 | tripcode = request.GET.get('tripcode', None) |
|
34 | tripcode = request.GET.get('tripcode', None) | |
35 | if tripcode: |
|
35 | if tripcode: | |
36 | filtered_posts = filtered_posts.filter(tripcode) |
|
36 | filtered_posts = filtered_posts.filter(tripcode=tripcode) | |
37 | return filtered_posts |
|
37 | return filtered_posts | |
38 |
|
38 | |||
39 |
|
39 |
@@ -131,7 +131,7 b' INSTALLED_APPS = (' | |||||
131 | # 'django.contrib.admindocs', |
|
131 | # 'django.contrib.admindocs', | |
132 | 'django.contrib.messages', |
|
132 | 'django.contrib.messages', | |
133 |
|
133 | |||
134 | 'debug_toolbar', |
|
134 | #'debug_toolbar', | |
135 |
|
135 | |||
136 | 'boards', |
|
136 | 'boards', | |
137 | ) |
|
137 | ) | |
@@ -179,9 +179,9 b' POSTING_DELAY = 20 # seconds' | |||||
179 | SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' |
|
179 | SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db' | |
180 |
|
180 | |||
181 | # Debug middlewares |
|
181 | # Debug middlewares | |
182 | MIDDLEWARE_CLASSES += [ |
|
182 | #MIDDLEWARE_CLASSES += [ | |
183 | 'debug_toolbar.middleware.DebugToolbarMiddleware', |
|
183 | # 'debug_toolbar.middleware.DebugToolbarMiddleware', | |
184 | ] |
|
184 | #] | |
185 |
|
185 | |||
186 |
|
186 | |||
187 | def custom_show_toolbar(request): |
|
187 | def custom_show_toolbar(request): |
General Comments 0
You need to be logged in to leave comments.
Login now