Parcourir la source

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

Gu1 il y a 11 ans
Parent
commit
843302915e

+ 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'))))

Fichier diff supprimé car celui-ci est trop grand
+ 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 %}