Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
teticio committed Oct 4, 2021
1 parent dc6106a commit f038785
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ async def spotify_refresh_token(refresh_token: str):


async def get_track_widget(track_id):
"""Get Spotify track widget.
Args:
track_id (str): Spotify track ID.
Returns:
str: HTML as text.
"""
headers = {
'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) '
Expand Down Expand Up @@ -268,7 +276,7 @@ async def track_widget(track_id: str):


@app.get('/api/v1/playlist_widget')
async def make_playlist_widget(track_ids, waypoints = '[]', playlist_id = ''):
async def make_playlist_widget(track_ids, waypoints='[]', playlist_id=''):
"""Make a new Spotify playlist widget.
Args:
Expand Down
1 change: 1 addition & 0 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def save_response_content(response, destination):
if chunk: # Filter out keep-alive new chunks
file.write(chunk)


if __name__ == '__main__':
download_file_from_google_drive('1Mg924qqF3iDgVW5w34m6Zaki5fNBdfSy',
'spotifytovec.p')
Expand Down

0 comments on commit f038785

Please sign in to comment.