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.
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.