'Check projects cronjob tick, return True when a new tick is sended'

def _check_cronjob(self):

    now = time.time()
    self._last_tick = int(self._last_tick)
    if ((now - self._last_tick) < 1):
        return False
    self._last_tick += 1
    for project in itervalues(self.projects):
        if (not project.active):
            continue
        if project.waiting_get_info:
            continue
        if (int(project.min_tick) == 0):
            continue
        if ((self._last_tick % int(project.min_tick)) != 0):
            continue
        self.on_select_task({'taskid': '_on_cronjob', 'project': project.name, 'url': 'data:,_on_cronjob', 'status': self.taskdb.SUCCESS, 'fetch': {'save': {'tick': self._last_tick}}, 'process': {'callback': '_on_cronjob'}})
    return True
