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

Avoid duplications in !xkcd #557

Open
nicklambourne opened this issue Nov 22, 2020 · 0 comments
Open

Avoid duplications in !xkcd #557

nicklambourne opened this issue Nov 22, 2020 · 0 comments
Assignees
Labels
bug committee-only Due to access requirements only committee or those with access to the server can fix these bugs

Comments

@nicklambourne
Copy link
Member

nicklambourne commented Nov 22, 2020

When xkcd skips a day or is late our bot reposts the last comic, leading to duplication and groaning.

Fix by storing the most recently published comic number in the postgres DB and querying it before posting. If the number exists, don't post that day. This should also help us be more up to date as we can check more regularly against the stored number than we have based solely on cron.

@nicklambourne nicklambourne added bug committee-only Due to access requirements only committee or those with access to the server can fix these bugs labels Nov 22, 2020
@nicklambourne nicklambourne self-assigned this Nov 22, 2020
@nicklambourne nicklambourne changed the title Avoid duplications in xkcd Avoid duplications in !xkcd Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug committee-only Due to access requirements only committee or those with access to the server can fix these bugs
Projects
None yet
Development

No branches or pull requests

1 participant