def has_update(self):
_time = time<EOL>if _time() > self.next_update:<EOL><INDENT>self.update_data()<EOL>self.next_update = _time() + self.interval<EOL>return True<EOL><DEDENT>return False<EOL>
Depending on the interval:

        returns True if its time for an update,
        returns False if its not yet time for an update