The function datetime.datetime.now() is used to construct SQL constraints in some in some files under lib/ranking/ which leads python to use the local time which might differ from UTC. But all timestamps in the database are UTC.
This leads to disappearing results on some setup. Changing the system clock to UTC fixes this bug although it's obviously not a solution.
Fixed by your own patch, thanks :)