Browse Source

Fix bug in the crawler, Change "add your project" to "add my project"

Gu1 11 years ago
parent
commit
843302915e
3 changed files with 4 additions and 4 deletions
  1. 2 2
      ffdnispdb/crawler.py
  2. 1 1
      ffdnispdb/templates/index.html
  3. 1 1
      ffdnispdb/templates/project_list.html

+ 2 - 2
ffdnispdb/crawler.py

@@ -66,8 +66,8 @@ class Crawler(object):
         try:
             r.raise_for_status()
         except requests.exceptions.HTTPError as e:
-            yield cls.err('Response code indicates an error')
-            yield cls.abort('Invalid response code')
+            yield self.err('Response code indicates an error')
+            yield self.abort('Invalid response code')
             return
 
         yield self.info('Content type: <strong>%s</strong>'%(esc(r.headers.get('content-type', 'not defined'))))

File diff suppressed because it is too large
+ 1 - 1
ffdnispdb/templates/index.html


+ 1 - 1
ffdnispdb/templates/project_list.html

@@ -25,6 +25,6 @@
     {% endfor -%}
   </tbody>
 </table>
-<a class="pull-right btn btn-primary btn-small" href="{{ url_for('add_project') }}">{{ _("Add your project") }}</a>
+<a class="pull-right btn btn-primary btn-small" href="{{ url_for('add_project') }}">{{ _("Add my project") }}</a>
 </div>
 {% endblock %}