def count_glpi_open_tickets(self, i3s_output_list, i3s_config):
        response = {'full_text': ''}

        mydb = MySQLdb.connect(
            host=self.host,
            user=self.user,
            passwd=self.password,
            db=self.db,
            connect_timeout=self.timeout,
        )
        mycr = mydb.cursor()
        mycr.execute('''select count(*)
                        from glpi_tickets
                        where closedate is NULL and solvedate is NULL;''')
        row = mycr.fetchone()
        if row:
            open_tickets = int(row[0])
            if i3s_config['colors']:
                if self.critical > open_tickets:
                    response.update({'color': i3s_config['color_bad']})
                elif open_tickets > self.warning:
                    response.update(
                        {'color': i3s_config['color_degraded']}
                    )
            response['full_text'] = '%s tickets' % open_tickets
        mydb.close()

        return response
dataset/ETHPy150Open ultrabug/py3status/py3status/modules/glpi.py/Py3status.count_glpi_open_tickets/swapped operands of `>`