Checking project deadline should always call has_deadline_passed

Bug #520286 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Fix Released
Critical
Matt Giuca

Bug Description

A lot of places in the code manually compare the deadline to datetime.now(). There's already a method which does this, Project.has_deadline_passed(user), in database.py. All code should be changed to call this abstraction, because at some point (bug #492544), it will change to respect project extensions. (This is why it takes a user object).

Related branches

Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in r1510.

Changed in ivle:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in ivle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.