Skip to content

Conversation

@code-chaser
Copy link
Owner

@code-chaser code-chaser commented Jun 27, 2022

Changes:

  • Fixes [BUG] : psycopg2 is not async #23
  • Created a dict to store the data from the online database so as to avoid querying the database for every single query;
    • Format of the dict:
      {
          'guilds': {
              '<guild1_id>': {'prefix': '<coressponding_value>', 'tag_messages': '<coressponding_value>'},
              # for each record in the table
          },
          # for each table in database
      }
    • Implementation:
    self.DATABASE['guilds'] = {result['guild_id']: {k: v for k, v in result.items() if k != 'guild_id'} for result in await self.DB_CONNECTION.fetch("SELECT * FROM guilds")}
  • Added a new bot command:
    • prefspace: toggles the trailing space in the bot prefix;

@code-chaser code-chaser self-assigned this Jun 27, 2022
@code-chaser
Copy link
Owner Author

code-chaser commented Jun 27, 2022

Closing Pull Request

Reason for closing:

  • This branch had an error being deployed;
  • Build Log / Error:
         The conflict is caused by:
             - The user requested aiohttp==3.8.1
             - discord-py 1.7.3 depends on aiohttp<3.8.0 and >=3.6.0
    

Solution:

  • change version of aiohttp from 3.8.1 to 3.7.4;

@code-chaser code-chaser reopened this Jun 27, 2022
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 16:55 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 17:07 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 17:19 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 17:39 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 17:54 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 18:14 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 18:18 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 18:56 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 19:37 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 19:41 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 19:45 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 19:54 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:02 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:19 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:23 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:32 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:37 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:39 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:41 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:46 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 20:52 Inactive
- it toggles the trailing space in the prefix
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 21:13 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 21:18 Inactive
@code-chaser code-chaser temporarily deployed to discord-bot-dex June 27, 2022 21:25 Inactive
@code-chaser code-chaser changed the title psycopg2 to asyncpg [PR] psycopg2 to asyncpg Jun 27, 2022
@code-chaser code-chaser changed the title [PR] psycopg2 to asyncpg [PR] : psycopg2 to asyncpg Jun 27, 2022
@code-chaser
Copy link
Owner Author

code-chaser commented Jun 27, 2022

Bugs Fixed

Merging Pull Request


@code-chaser code-chaser merged commit 42a8b77 into main Jun 27, 2022
@code-chaser code-chaser deleted the psycopg2-to-asyncpg branch June 27, 2022 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] : psycopg2 is not async

2 participants