-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frontend: provide statistics on how many users submitted at least one build in past month #3401
Conversation
… build in past month Fixes: # 3315
""" | ||
result = db.session.query(models.Build.user_id)\ | ||
.join(models.BuildChroot)\ | ||
.filter(models.BuildChroot.ended_on > start)\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This filter seems redundant. To check that the user is active, it is enough to monitor the "started_on" field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True for the params we are passing. But not true for any time period.
And I basically steal this from the fuction above.
The failing lint is on file that I did not touch. I am going to ignore it. |
Yes, please ignore. These files have been modified recently (the warnings disappeared) in the |
I believe I finally fixed the linter, seems green now. |
Fixes: #3315