djotaku/ELDonationTracker

If API is unreachable do not overwrite files

Closed this issue · 0 comments

In order to have something to display at the beginning of an Extra Life Year, I have it put "no donations yet" (or something to that effect) into the text files. Right now it does that if it can't get data from the Participant. But this could also happen if there's a 403 error (as there currently is from the Donor Drive API).

This should not be the behavior.

Current thought process, do a check if the file is already there and if so, do not overwrite the data if can't get to Participant data or Participant data is missing in the way that the logic currently interprets as there being no donations.