diff --git a/depicts/model.py b/depicts/model.py index 7f08e26..7dd4eee 100644 --- a/depicts/model.py +++ b/depicts/model.py @@ -132,3 +132,7 @@ class WikidataQuery(Base): t = t[:-7] return t + + @property + def bad(self): + return self.status_code and self.status_code != 200 diff --git a/templates/query_list.html b/templates/query_list.html index 751442b..2bca69d 100644 --- a/templates/query_list.html +++ b/templates/query_list.html @@ -15,23 +15,25 @@