mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 06:18:08 -05:00
Fix query for fetching promotion schedule by user.
The general query worked fine but passing an author_id raised an error.
This commit is contained in:
@@ -536,7 +536,7 @@ class PromotionWeights(Sessionized, Base):
|
||||
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():
|
||||
|
||||
Reference in New Issue
Block a user