rrnarayan1 / omni-crosswords

An iOS app that fetches crosswords and allows users to complete them
GNU General Public License v3.0
26 stars 2 forks source link

New puzzles failing to load #5

Closed verygoodsoftwarenotvirus closed 1 year ago

verygoodsoftwarenotvirus commented 2 years ago

Hi, I love this app, thank you for working on it. I noticed that after updating to the latest release about a week ago, new puzzles are no longer fetched. I've attached a screenshot of what my current app screen looks like:

image

Pressing the refresh button yields no new puzzles or error notice.

rrnarayan1 commented 1 year ago

Hey there - this was happening because the Atlantic puzzle was fetched with a date in the future. In https://github.com/rrnarayan1/omni-crosswords/blob/master/crosswords/Views/CrosswordListView.swift#L120, you'll see that the app uses the last date to fetch crosswords after that date.

I resolved this by building a "versioning" feature that allwos me to remotely update puzzles if needed: https://github.com/rrnarayan1/omni-crosswords/commit/46dddbd8b6a502187ae0293ea17b7df109f2c062