Reinitialize the update_errors counter when reactivating updates
authorGu1 <gu1@cafai.fr>
Tue, 31 Dec 2013 14:41:21 +0000 (15:41 +0100)
committerGu1 <gu1@cafai.fr>
Tue, 31 Dec 2013 14:41:21 +0000 (15:41 +0100)
ffdnispdb/views.py

index 7790434..835a780 100644 (file)
@@ -349,6 +349,7 @@ def reactivate_isp(projectid):
         p.cache_info = session['form_reactivate']['cache_info']
         p.last_update_attempt = session['form_reactivate']['last_update']
         p.last_update_success = p.last_update_attempt
+        p.update_error_strike = 0
 
         db.session.add(p)
         db.session.commit()