mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Reformat arguments for readability
We want to add another argument here, and doing so would make the line length too long with all the arguments on one line. Also uses the * operator to enforce keyword-only arguments.
This commit is contained in:
@@ -58,7 +58,14 @@ def dao_get_job_by_service_id_and_job_id(service_id, job_id):
|
||||
return Job.query.filter_by(service_id=service_id, id=job_id).one()
|
||||
|
||||
|
||||
def dao_get_jobs_by_service_id(service_id, limit_days=None, page=1, page_size=50, statuses=None):
|
||||
def dao_get_jobs_by_service_id(
|
||||
service_id,
|
||||
*,
|
||||
limit_days=None,
|
||||
page=1,
|
||||
page_size=50,
|
||||
statuses=None,
|
||||
):
|
||||
query_filter = [
|
||||
Job.service_id == service_id,
|
||||
Job.original_file_name != current_app.config['TEST_MESSAGE_FILENAME'],
|
||||
|
||||
Reference in New Issue
Block a user