Skip to content

Commit

Permalink
25660 - updates for date and statement (bcgov#3197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ketaki-deodhar authored Feb 6, 2025
1 parent 9ac76f6 commit 65f5d0b
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions jobs/correction-ben-statement/add_corrections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,14 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Correction created successfully for BC0871147\n",
"Correction created successfully for BC0871183\n",
"Correction created successfully for BC0871186\n"
"Correction created successfully for BC0887565 and correction filing_id is 169063\n"
]
}
],
Expand All @@ -87,6 +85,13 @@
"from corrections_output import correction_businesses\n",
"\n",
"current_date = datetime.now().date().isoformat()\n",
"formatted_current_date = datetime.now().date().strftime('%B %d, %Y')\n",
"correction_statement = (\"BC benefit company statement contained in notice of articles as required under section \" \n",
"\"51.992 of the Business Corporations Act corrected from “This company is a benefit company and, as such, has purposes \"\n",
"\"that include conducting its business in a responsible and sustainable manner and promoting one or more public \"\n",
"\"benefits” to “This company is a benefit company and, as such, is committed to conducting its business in a \"\n",
"\"responsible and sustainable manner and promoting one or more public benefits”\")\n",
"\n",
"headers = {\n",
" 'Content-Type': 'application/json',\n",
" 'Authorization': 'Bearer ' + token\n",
Expand All @@ -108,16 +113,11 @@
" \"legalType\": \"BC\"\n",
" },\n",
" \"correction\": {\n",
" \"details\": \"First correction\",\n",
" \"details\": \"BEN Correction statement\",\n",
" \"correctedFilingId\": filind_id,\n",
" \"correctedFilingType\": \"incorporationApplication\",\n",
" \"comment\": f\"\"\"Correction for Incorporation Application filed on {current_date} \\n\n",
" BC benefit company statement contained in notice of articles as required under section \n",
" 51.992 of the Business Corporations Act corrected from “This company is a benefit company \n",
" and, as such, has purposes that include conducting its business in a responsible and \n",
" sustainable manner and promoting one or more public benefits” to \n",
" “This company is a benefit company and, as such, is committed to conducting its business in \n",
" a responsible and sustainable manner and promoting one or more public benefits”.\"\"\"\n",
" \"comment\": f\"\"\"Correction for Incorporation Application filed on {formatted_current_date}\n",
" {correction_statement}\"\"\"\n",
" }\n",
" }\n",
" }\n",
Expand All @@ -127,9 +127,10 @@
"\n",
" # Check the status code of the response\n",
" if rv.status_code == 201:\n",
" print(f\"Correction created successfully for {identifier}\")\n",
" correction_filing_id = rv.json()[\"filing\"][\"header\"][\"filingId\"]\n",
" print(f\"Correction created successfully for {identifier} and correction filing_id is {correction_filing_id}\")\n",
" else:\n",
" print(f\"Failed to make POST request. Status code: {rv.status_code}\")\n",
" print(f\"Failed to make POST request. Status code: {rv.status_code}: {rv.text}\")\n",
" print(rv.text) # Print the error message if the request fails\n",
" \n"
]
Expand Down

0 comments on commit 65f5d0b

Please sign in to comment.