def on_db_complete(self, success, db_results):
        self.check_db_results(success, db_results)

        insert_results, select_results = db_results
        pushurl = '/push?id=%s' % insert_results.lastrowid
        pushmanager_url = self.get_base_url() + pushurl

        def users_involved(request):
            if request['watchers']:
                return [request['user']] + request['watchers'].split(',')
            return [request['user']]

        if ('private', 'morning') in self.pushtype:
            people = None
        elif self.pushtype == 'urgent':
            people = set(user for x in select_results for user in users_involved(x) if 'urgent' in x['tags'].split(','))
        else:
            people = set(user for x in select_results for user in users_involved(x))

        send_notifications(people, self.pushtype, pushmanager_url)

        return self.redirect(pushurl)
dataset/ETHPy150Open YelpArchive/pushmanager/pushmanager/servlets/newpush.py/NewPushServlet.on_db_complete/swapped operands of `in`