Skip to content

Commit

Permalink
Fix query for fetching promotion schedule by user.
Browse files Browse the repository at this point in the history
The general query worked fine but passing an author_id raised an error.
  • Loading branch information
shlurbee committed Jul 16, 2012
1 parent 7abbac6 commit aff7c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/models/bidding.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def get_schedule(cls, start_date, end_date, author_id = None):
q = q.filter(and_(cls.date >= start_date, cls.date < end_date))

if author_id is not None:
q.filter(author_id = author_id)
q = q.filter(cls.account_id == author_id)

res = {}
for x in q.all():
Expand Down

0 comments on commit aff7c46

Please sign in to comment.