This should be entries, which is a filtered list of parser.entries by the specified time. In fact, you could just replace the value of parser.entries on line 403. Then this block would be identical to the block on line 414, so you could move it outside of the if/else to reduce duplication.