Skip to content

Commit

Permalink
black code
Browse files Browse the repository at this point in the history
  • Loading branch information
dotX12 committed Mar 28, 2024
1 parent 1c74c88 commit c0f1137
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/album_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ async def main():
serialized = Serialize.album_info(data=albums)

for i in serialized.data[0].relationships.tracks.data:
msg = f"{i.id} | {i.attributes.album_name} | {i.attributes.artist_name} [{i.attributes.name}]"
msg = (
f"{i.id} | {i.attributes.album_name} | {i.attributes.artist_name} [{i.attributes.name}]"
)
print(msg)


loop = asyncio.get_event_loop_policy().get_event_loop()
loop.run_until_complete(main())
4 changes: 3 additions & 1 deletion examples/artist_albums.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ async def main():
albums = await shazam.artist_albums(artist_id=artist_id)
serialized = Serialize.artist_albums(data=albums)
for i in serialized.data:
print(f"{i.id} | {i.attributes.artist_name} ->>>>>>>> {i.attributes.name} - {i.attributes.track_count} {i.attributes.release_date}")
print(
f"{i.id} | {i.attributes.artist_name} ->>>>>>>> {i.attributes.name} - {i.attributes.track_count} {i.attributes.release_date}"
)


loop = asyncio.get_event_loop_policy().get_event_loop()
Expand Down
1 change: 0 additions & 1 deletion shazamio/schemas/album.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ class AlbumModel(BaseModel):
href: str
attributes: AttributesFullAlbums
relationships: AlbumRelationships

0 comments on commit c0f1137

Please sign in to comment.