From 4a014122e44a7b574764ce783166d69c935129d9 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 19 Sep 2021 07:26:07 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - keen/api.py - keen/saved_queries.py Fixes: - Should read `retrieve` rather than `retreive`. - Should read `hierarchy` rather than `heirarchy`. --- keen/api.py | 2 +- keen/saved_queries.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keen/api.py b/keen/api.py index 0d2a0e9..196255a 100644 --- a/keen/api.py +++ b/keen/api.py @@ -300,7 +300,7 @@ def get_access_key(self, key): """ Returns details on a particular access key. A master key must be set first. - :param key: the 'key' value of the access key to retreive data from + :param key: the 'key' value of the access key to retrieve data from """ url = "{0}/{1}/projects/{2}/keys/{3}".format(self.base_url, self.api_version, self.project_id, key) diff --git a/keen/saved_queries.py b/keen/saved_queries.py index 0260a0b..5629617 100644 --- a/keen/saved_queries.py +++ b/keen/saved_queries.py @@ -128,7 +128,7 @@ def update(self, query_name, saved_query_attributes): # for 'group_by', 'interval' or 'timezone', but those aren't accepted values when updating. old_query = old_saved_query[query_attr_name] # expected - # Shallow copy since we want the entire object heirarchy to start with. + # Shallow copy since we want the entire object hierarchy to start with. for (key, value) in six.iteritems(old_query): if value: new_saved_query[query_attr_name][key] = value