Skip to content

Commit

Permalink
more copilot madness
Browse files Browse the repository at this point in the history
  • Loading branch information
gamesguru committed Jan 8, 2024
1 parent f6e7c8f commit 20d767e
Show file tree
Hide file tree
Showing 3 changed files with 418 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sql/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ def get(self, endpoint: str, params: dict = None) -> dict:
response = requests.get(
f"{self.url}/{endpoint}", headers=self.headers, params=params
)
return json.loads(response.text)
return dict(json.loads(response.text))

def get_seasons(self) -> dict:
"""Get all seasons"""
return self.get("seasons")

def get_teams(self) -> dict:
"""Get all teams"""
Expand Down
8 changes: 8 additions & 0 deletions sql/builder.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 8 01:16:50 2024
@author: shane
"""

Loading

0 comments on commit 20d767e

Please sign in to comment.