SciLifeLab/scilifelab — pull request #398 by Galithil (2014-08-04 09:28:10+00:00)
Title: Fixes close date = Null

so @remiolsen found that PSUL suddently uploaded empty close_dates to status db, and since the check only looks for the presence of the key rather than its value, a lot of projects were marked closed.

What happens it that he object to upload was always given a close_date = null, but the last operation on this object was to clear out all the empty values. As I added code, this instruction shifted to the right, making it belonging to another block which was not executed all the time. While I would like to blame this on python (it would not have happened with braces) or even on statusdb (not monitoring the value ), this is mainly my fault anyway.
So here is the fix.