worker_id filter for credit roll
This commit is contained in:
parent
b448d0ddcd
commit
da36fbf6fe
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ class HIT(Base):
|
||||||
session = object_session(self)
|
session = object_session(self)
|
||||||
q = session.query(Assignment).\
|
q = session.query(Assignment).\
|
||||||
filter(Assignment.submit_page_at < self.created_at).\
|
filter(Assignment.submit_page_at < self.created_at).\
|
||||||
|
filter(Assignment.worker_id != None).\
|
||||||
group_by(Assignment.worker_id).\
|
group_by(Assignment.worker_id).\
|
||||||
order_by(Assignment.created_at.desc())
|
order_by(Assignment.created_at.desc())
|
||||||
if assignment and assignment.worker_id:
|
if assignment and assignment.worker_id:
|
||||||
|
|
Loading…
Reference in a new issue