-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix updating
all_time
value for *other* sponsors (#854)
For sponsors who are not tracked through OpenCollective we need to update the `all_time` value explicitly. #710 introduced an automation for this but it was completely flawed and never actually worked as intended (see #851 (comment)). With this patch we keep track of `time_last_payment` in `_data/others.json`. The original value is set to March 2024 when we last updated the current `all_time` values. The merge script now automatically adds the amount of the current montly contribution for every month since the last update. Usually the script runs at least once per month, so it should only add one amount. But it also catches up gracefully if there's an interruption (and it works for the initial catch up). The script then writes the updated values for `all_time` and `time_last_payment` (set to now) back to `_data/others.json` and commits it so we keep track of which monthly contribution has already been processed.
- Loading branch information
1 parent
cc9c6c2
commit 6cd606f
Showing
5 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
logo,name,url,last_payment,all_time,since,level | ||
sponsors/84.png,84codes,https://www.84codes.com/,"€22,000","€391,000","Apr 1, 2018",5000 | ||
manas-orange.svg,Manas.Tech,https://manas.tech/,"$5,000","$1,305,000","Jun 19, 2009",5000 | ||
sponsors/84.png,84codes,https://www.84codes.com/,"€22,000","€523,000","Apr 1, 2018",5000 | ||
manas-orange.svg,Manas.Tech,https://manas.tech/,"$5,000","$1,335,000","Jun 19, 2009",5000 | ||
sponsors/buy_google_reviews.jpg,Buy Google Reviews,https://buyreviewz.com/buy-google-reviews,$750,"$1,500","Aug 7, 2024",750 | ||
sponsors/buy_instagram_followers_thunderclapit.png,Buy Instagram Followers Thunderclapit,https://thunderclap.it/buy-instagram-followers,$750,"$1,500","Aug 7, 2024",750 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters