mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 18:38:14 -04:00
The ftp app once updated the status of a job, since we no longer call the task we can delete it.
This commit is contained in:
@@ -115,11 +115,6 @@ def dao_update_job(job):
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def dao_update_job_status(job_id, status):
|
||||
db.session.query(Job).filter_by(id=job_id).update({'job_status': status})
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def dao_get_jobs_older_than_limited_by(job_types, older_than=7, limit_days=2):
|
||||
end_date = datetime.utcnow() - timedelta(days=older_than)
|
||||
start_date = end_date - timedelta(days=limit_days)
|
||||
|
||||
Reference in New Issue
Block a user