worker_id filter for credit roll

This commit is contained in:
Ruben van de Ven 2020-01-22 16:58:07 +01:00
parent b448d0ddcd
commit da36fbf6fe

View file

@ -134,6 +134,7 @@ class HIT(Base):
session = object_session(self)
q = session.query(Assignment).\
filter(Assignment.submit_page_at < self.created_at).\
filter(Assignment.worker_id != None).\
group_by(Assignment.worker_id).\
order_by(Assignment.created_at.desc())
if assignment and assignment.worker_id: