diff --git a/lib_af_api/event.py b/lib_af_api/event.py index 62247ed..c732eb8 100644 --- a/lib_af_api/event.py +++ b/lib_af_api/event.py @@ -139,9 +139,13 @@ class Event(): 'Authorization': f'Bearer {self.jwt}' } + logging.error("[patch_v2 headers] [%s]", headers) + # Set the key to the patch data patch_data['key'] = event_key + logging.error("[patch_v2 patch_data] [%s]", patch_data) + # Run the GET response = requests.patch( f'{self.base_url}/api/v1/events/{event_key}', @@ -150,6 +154,8 @@ class Event(): json=patch_data ) + logging.error("[patch_v2 response.text] [%s]", response.text) + # Good response. Return Event if response.ok: return response.json(), response.status_code diff --git a/setup.py b/setup.py index 45d937f..fd52250 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open('README.md', 'r') as f: setup( name='lib_af_api', - version='1.0.1', + version='1.0.2', author='', author_email='', description='',