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:
Rebecca Law
2018-11-27 14:37:36 +00:00
parent 3033015754
commit bffa783e8f
4 changed files with 0 additions and 37 deletions
-5
View File
@@ -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)