Skip to content

Commit

Permalink
changed update to put
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucapirro committed Jan 30, 2024
1 parent fb04369 commit 6555e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GoogleWalletPassGenerator/EventTicket.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def create_add_event_ticket_urls(self, objects_to_add):

def update_class(self, class_id: str, event_ticket_class_data: dict):
url = f'{self.base_url}/eventticketclass/{class_id}'
response = self.http_client.update(url, data=json.dumps(event_ticket_class_data))
response = self.http_client.put(url, data=json.dumps(event_ticket_class_data))
return response.json()

def patch_class(self, class_id: str, event_ticket_class_data: dict):
url = f'{self.base_url}/eventticketclass/{class_id}'
response = self.http_client.update(url, data=json.dumps(event_ticket_class_data))
response = self.http_client.patch(url, data=json.dumps(event_ticket_class_data))
return response.json()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/gianlucapirro/GoogleWalletPassGenerator',
download_url='https://github.com/gianlucapirro/GoogleWalletPassGenerator/archive/refs/tags/v1.0.7.tar.gz'
download_url='https://github.com/gianlucapirro/GoogleWalletPassGenerator/archive/refs/tags/v1.0.8.tar.gz'
)

0 comments on commit 6555e23

Please sign in to comment.