Skip to content

Commit

Permalink
fix: dev: search query repr
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmadaniHaryono committed Jul 5, 2018
1 parent 4826751 commit f0caeb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gbooru_images_download/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class SearchQuery(Base):

def __repr__(self):
templ = \
'<SearchQuery:{0.id} q:[{0.search_term}] p:{0.page} {0.mode.name}>'
return templ.format(self)
'<SearchQuery:{0.id} q:[{0.search_term}] p:{0.page} mode:{1}>'
return templ.format(self, self.mode.name if self.mode else '')


class MatchResult(Base):
Expand Down

0 comments on commit f0caeb9

Please sign in to comment.