Skip to content

Commit 280fe6c

Browse files
authored
Merge pull request bcgov#103 from tom0827/typos
[NO-ISSUE] Fixing typos
2 parents 3101d05 + a7eca07 commit 280fe6c

File tree

44 files changed

+116
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+116
-112
lines changed

analytics-api/src/analytics_api/models/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Initilizations for db, migration and marshmallow."""
1+
"""Initializations for db, migration and marshmallow."""
22

33
from contextlib import contextmanager
44
from flask import current_app

analytics-api/src/analytics_api/models/request_type_option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_survey_result(
7878
# - count: number of time the same value is selected as a response to each question
7979

8080
# Check if there are records in survey_response and available_response before executing the final query
81-
# which fetches all the available responses along with the corresponding reponses.
81+
# which fetches all the available responses along with the corresponding responses.
8282
if survey_response_exists and available_response_exists:
8383
survey_result = (db.session.query((survey_question.c.position).label('position'),
8484
(survey_question.c.label).label('question'),
@@ -97,7 +97,7 @@ def get_survey_result(
9797
.group_by(survey_question.c.position, survey_question.c.label))
9898

9999
return survey_result.all()
100-
# Check if there are records in survey_response before executing the final query which fetches reponses
100+
# Check if there are records in survey_response before executing the final query which fetches responses
101101
# even if the available_response table is not yet populated.
102102
if survey_response_exists:
103103
survey_result = (db.session.query((survey_question.c.position).label('position'),

analytics-api/src/analytics_api/models/response_mixin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ class ResponseMixin: # pylint: disable=too-few-public-methods
1212
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
1313

1414
"""
15-
Response needs to have additonal fields as
15+
Response needs to have additional fields as
1616
request_key = simpletextfield,checkbox,simplecheckboxes
1717
value = actual user value
18-
request_id = mapping to questions.Id from the reuqst table.Helps with groupiing
18+
request_id = mapping to questions.Id from the request table. Helps with grouping
1919
"""
2020

2121
@declared_attr

analytics-api/src/analytics_api/utils/user_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def is_staff_admin(self) -> bool:
8181
return Role.CREATE_ENGAGEMENT.value in self._roles if self._roles else False
8282

8383
def is_system(self) -> bool:
84-
"""Return True if the user is system user.Helps to idenitfy connections from EPIC."""
84+
"""Return True if the user is system user. Helps to identify connections from EPIC."""
8585
return Role.SYSTEM.value in self._roles if self._roles else False
8686

8787
@property

met-api/src/met_api/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class _Config(): # pylint: disable=too-few-public-methods
210210
SLUG_MAX_CHARACTERS = int(os.getenv('SLUG_MAX_CHARACTERS', '100'))
211211

212212
# EAO is a single Tenant Environment where EAO is the only env and should be set to True
213-
# This flag decides if additonal tenant based checks has to be carried or not
213+
# This flag decides if additional tenant based checks has to be carried or not
214214
IS_SINGLE_TENANT_ENVIRONMENT = os.getenv('IS_SINGLE_TENANT_ENVIRONMENT', 'False').lower() == 'true'
215215

216216
# EAO EPIC configs

met-api/src/met_api/models/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
"""Initilizations for db, migration and marshmallow."""
2+
"""Initializations for db, migration and marshmallow."""
33

44
from contextlib import contextmanager
55
from flask_marshmallow import Marshmallow

met-api/src/met_api/models/membership.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
class Membership(BaseModel):
21-
"""Definition of the Memebership entity."""
21+
"""Definition of the Membership entity."""
2222

2323
__tablename__ = 'membership'
2424
id = db.Column(db.Integer, primary_key=True, autoincrement=True)

met-api/src/met_api/models/report_setting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ReportSetting(BaseModel): # pylint: disable=too-few-public-methods
2424
question_type = db.Column(db.Text())
2525
question = db.Column(db.Text())
2626
display = db.Column(db.Boolean, default=True,
27-
comment='Flag to identify if the question needs to be diplayed on the dashboard.')
27+
comment='Flag to identify if the question needs to be displayed on the dashboard.')
2828

2929
@classmethod
3030
def find_by_survey_id(cls, survey_id):

met-api/src/met_api/schemas/schemas/feedback.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"minimum": 0,
2323
"maximum": 5,
2424
"title": "Rating",
25-
"description": "The rating range from 1 to 5. The value 0 is to accomodate only comment",
25+
"description": "The rating range from 1 to 5. The value 0 is to accommodate only comment",
2626
"examples": [
2727
0, 1, 2, 3, 4, 5
2828
]

met-api/src/met_api/services/project_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def update_project_info(eng_id: str) -> EngagementModel:
4141
api_response = RestService.put(endpoint=update_url, token=eao_service_account_token,
4242
data=epic_comment_period_payload,
4343
raise_for_status=False)
44-
# no handling of return so far since epic doesnt return anything
44+
# no handling of return so far since epic doesn't return anything
4545

4646
else:
4747
create_url = f'{current_app.config.get("EPIC_URL")}'

0 commit comments

Comments
 (0)