Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated cron collection to ODM #1

Open
wants to merge 3 commits into
base: feat/beanie-odm/master
Choose a base branch
from

Conversation

Nydauron
Copy link
Owner

To be merged into staging feature branch feat/beanie-odm/master

Description

Migrates over cron collection to use Beanie ODM

Checks

  • I ran black over the code to ensure formatting.
  • I added docstrings to any new modules, classes, and methods.
  • I updated the docstrings of any updated modules, classes, and methods.
  • I added/updated Python typings for any new/updated class and module.
  • I updated the bot version (if necessary).
  • I ran mypy and reviewed any shown errors related to my changes.

Important Info

  • This pull request adds new pip dependencies.
  • This pull request adds new external dependencies.
  • This pull request changes the required versions of some dependencies.

Issues Closed

My pull request closes the following issues:

  • N/A

Thank You

Thank you for your contribution to Scioly.org! This pull request will be reviewed
in a promptly manner. If not done, please feel free to contact @cbrxyz.

@Nydauron Nydauron changed the title Migrated cron collection to use ODM Migrated cron collection to ODM May 31, 2024
counts = {}
for doc in docs[:20]:
timeframe = (doc["time"] - discord.utils.utcnow()).days
for doc in docs[:20]: # FIXME: Magic number
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too sure if this magic number should be DISCORD_AUTOCOMPLETE_MAX_ENTRIES or something different.

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.

1 participant