dandroid126 / lemmy-nhl-gdt-bot

GNU General Public License v3.0
0 stars 2 forks source link

[Optimization] Don't query the DB or hit the feed live API unless it is within the posting window for a game. #20

Closed dandroid126 closed 1 year ago

dandroid126 commented 1 year ago

Currently both DB queries are made and the feed live API is hit for games that aren't within their window to have a post made. Optimize this. This information can be determined from the schedule API only, and the DB queries and feed live API can be skipped.

dandroid126 commented 1 year ago

fixed by 6f17a91b8e4dd795136d6eaa5657dfa64305efe1