Skip to content

Commit

Permalink
Fixed bug with incorrect query for vacancies to DB
Browse files Browse the repository at this point in the history
  • Loading branch information
n.lyubchich committed Jul 27, 2015
1 parent ad0b1fb commit 178fdbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/bl/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class CategoryBL(BaseBL):
class VacancyBL(BaseBL):

def get_visible(self):
vacancies = self.model.query.filter(not self.model.hide).all()
vacancies = self.model.query\
.filter(self.model.hide == False)\
.all() # NOQA
return vacancies


Expand Down

0 comments on commit 178fdbf

Please sign in to comment.