Another unused method to delete

This commit is contained in:
Rebecca Law
2018-03-02 11:02:54 +00:00
parent bffc4863db
commit d6c929d127
4 changed files with 2 additions and 87 deletions

View File

@@ -413,21 +413,6 @@ def is_delivery_slow_for_provider(
return count >= threshold
@statsd(namespace="dao")
@transactional
def dao_update_notifications_for_job_to_sent_to_dvla(job_id, provider):
now = datetime.utcnow()
updated_count = db.session.query(
Notification).filter(Notification.job_id == job_id).update(
{'status': NOTIFICATION_SENDING, "sent_by": provider, "sent_at": now})
db.session.query(
NotificationHistory).filter(NotificationHistory.job_id == job_id).update(
{'status': NOTIFICATION_SENDING, "sent_by": provider, "sent_at": now, "updated_at": now})
return updated_count
@statsd(namespace="dao")
@transactional
def dao_update_notifications_by_reference(references, update_dict):