-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update no new platform version * Update env for pushing to new ebs env * Trigger cd pipeline on cloud migration branch * disable tests temporarily * Update CI * Add openai * Delete csv data * Create new api version * Add Income to db model * Add Image copyright politician model * Add latest elections to parser * Add match topic to position function * Create get last day of the month util function * Add get party donation details function * Update to v2 and incluse api v2 * Add new schemas * Update Schema naming * Fix politician route only showing 5 sidejobs * Fix append_candidacies & comittees, add income to sidejobs, add append position_statements, update append positions, fix append_sidejob_organisations, add gen_images.json, add extract_and_sum_ammounts function, add update sidejobs income function, update politician_images * Update information about scrapers * Load partydonation orgs and clean it * Extract and clean donors * Fox reformat data function and check if donation exists * Refactor partydonation org function * Update no new platform version * Update env for pushing to new ebs env * Trigger cd pipeline on cloud migration branch * Update CI * Add openai * Delete csv data * Create new api version * Add Income to db model * Add Image copyright politician model * Add latest elections to parser * Add match topic to position function * Create get last day of the month util function * Add get party donation details function * Update to v2 and incluse api v2 * Add new schemas * Update Schema naming * Fix politician route only showing 5 sidejobs * Fix append_candidacies & comittees, add income to sidejobs, add append position_statements, update append positions, fix append_sidejob_organisations, add gen_images.json, add extract_and_sum_ammounts function, add update sidejobs income function, update politician_images * Update information about scrapers * Load partydonation orgs and clean it * Extract and clean donors * Fox reformat data function and check if donation exists * Refactor partydonation org function * Fix JSonEncoder for SQL models * Change partydonation details to align with quarters and add helper function * Add get last day of the month function * Fix donation_exists and clean_donations * Add donation_org exist, add edge cases and fix helper functions * Fix extract and clean donor function * Add caching to v2 routes * Fix append partydonation function * Update poetry.lock * Add ci job for development PR * Disable tests temporarily
- Loading branch information
1 parent
0f01131
commit a273309
Showing
24 changed files
with
2,083 additions
and
6,361 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import datetime | ||
|
||
|
||
def get_last_day_of_the_month(): | ||
last_day_of_the_month = None | ||
|
||
today = datetime.date.today() | ||
tomorrow = today + datetime.timedelta(days=1) | ||
|
||
if tomorrow.month != today.month: | ||
last_day_of_the_month = today | ||
else: | ||
last_day_of_the_month = datetime.date( | ||
today.year, today.month, 1 | ||
) - datetime.timedelta(days=1) | ||
|
||
return last_day_of_the_month |
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
Oops, something went wrong.