Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24839 - script to add corrections and related changes #3168

Merged
merged 9 commits into from
Jan 9, 2025

Conversation

ketaki-deodhar
Copy link
Collaborator

@ketaki-deodhar ketaki-deodhar commented Jan 9, 2025

Issue #: /bcgov/entity#24839

Description of changes:

  • created separate scripts for adding Registrar's Notation and corrections
  • created queries to get existing businesses
  • python script to convert data extracted (from queries) to desired array
  • fixed data formatting for outputs (corrections)
  • fix in filer if Parties are none (corrections)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@ketaki-deodhar ketaki-deodhar self-assigned this Jan 9, 2025
@ketaki-deodhar ketaki-deodhar marked this pull request as ready for review January 9, 2025 16:48
Comment on lines 1170 to 1176
if filing.get('shareClasses'):
dates = filing['correction']['shareStructure'].get('resolutionDates', [])
formatted_dates = [
datetime.fromisoformat(date).strftime(OUTPUT_DATE_FORMAT) for date in dates
]
filing['resolutions'] = formatted_dates
filing['newShareClasses'] = []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if filing.get('shareClasses'):
dates = filing['correction']['shareStructure'].get('resolutionDates', [])
formatted_dates = [
datetime.fromisoformat(date).strftime(OUTPUT_DATE_FORMAT) for date in dates
]
filing['resolutions'] = formatted_dates
filing['newShareClasses'] = []
if filing.get('correction').get('shareStructure'):
dates = filing['correction']['shareStructure'].get('resolutionDates', [])
formatted_dates = [
datetime.fromisoformat(date).strftime(OUTPUT_DATE_FORMAT) for date in dates
]
filing['resolutions'] = formatted_dates
filing['newShareClasses'] = []
if filing.get('shareClasses'):

Copy link

sonarqubecloud bot commented Jan 9, 2025

@ketaki-deodhar ketaki-deodhar merged commit 9ca5ad0 into bcgov:main Jan 9, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants