title: Is there a way to check if a MySQL dictionary's element contains a specific integer?
body: <p>I have a logging system in my discord bot, and I want to make a system which allows you to ignore channels, but I'm stuck with it.
  Currently I have this code:</p>
  <pre class="lang-py prettyprint-override"><code>cursor=db.cursor(dictionary=True)
  cursor.execute(f&quot;SELECT * FROM `logexclude` WHERE server={int(before.guild.id)}&quot;)
  excluded = cursor.fetchall()
  for i in excluded:
      if before.channel.id in i[1]: return
  </code></pre>
  <p><code>excluded</code> is a list and it looks like this:
  <code>[{'server': 890248334542008321, 'channel_ids': 890248758875533322, 'user_ids': 0, 'role_ids': 0}]</code></p>
  <p>However, when I try to access it's first element (<code>excluded[0]</code>), it just gives me an error:</p>
  <pre><code>    if before.channel.id in i[1]: return
  TypeError: 1
  </code></pre>