mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
Added endpoints for creating job, and getting job/jobs.
This commit is contained in:
@@ -7,8 +7,8 @@ def save_job(job):
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def get_job_by_id(id):
|
||||
return Job.query.get(id)
|
||||
def get_job_by_id(job_id):
|
||||
return Job.query.filter_by(id=job_id).one()
|
||||
|
||||
|
||||
def get_jobs_by_service(service_id):
|
||||
|
||||
Reference in New Issue
Block a user