Skip to content

Commit 67c562b

Browse files
authored
Merge pull request ckan#9244 from thecaptain789/fix-typos
fix: correct typos 'occured', 'seperately', and 'recieve'
2 parents 46543be + 20e9cb7 commit 67c562b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ckanext/activity/model/activity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def _group_activity_query(group_id: Union[str, List[str]]) -> QActivity:
442442
.filter(
443443
# We only care about activity either on the group itself or on
444444
# packages within that group. FIXME: This means that activity that
445-
# occured while a package belonged to a group but was then removed
445+
# occurred while a package belonged to a group but was then removed
446446
# will not show up. This may not be desired but is consistent with
447447
# legacy behaviour.
448448
or_(
@@ -487,7 +487,7 @@ def _organization_activity_query(org_id: str) -> QActivity:
487487
.filter(
488488
# We only care about activity either on the the org itself or on
489489
# packages within that org.
490-
# FIXME: This means that activity that occured while a package
490+
# FIXME: This means that activity that occurred while a package
491491
# belonged to a org but was then removed will not show up. This may
492492
# not be desired but is consistent with legacy behaviour.
493493
#

ckanext/multilingual/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def translate_resource_data_dict(data_dict: dict[str, Any]):
196196
.unflatten(translated_flattened))
197197
return translated_data_dict
198198

199-
KEYS_TO_IGNORE = ['state', 'revision_id', 'id', #title done seperately
199+
KEYS_TO_IGNORE = ['state', 'revision_id', 'id', #title done separately
200200
'metadata_created', 'metadata_modified', 'site_id']
201201

202202

ckanext/tracking/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def popular(type_: str,
1515
'{number} recent view', '{number} recent views', number
1616
)
1717
elif not title:
18-
raise Exception('popular() did not recieve a valid type_ or title')
18+
raise Exception('popular() did not receive a valid type_ or title')
1919
data_dict = {'title': title, 'number': number, 'min': min}
2020

2121
return toolkit.render_snippet('snippets/popular.html', data_dict)

0 commit comments

Comments
 (0)