Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/fast_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

correct_rows = []

@app.get("/")
@app.get("/api")
def root():
return {"message": "FastAPI is working!"}

Expand Down
3 changes: 2 additions & 1 deletion api/genius.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ def get_genius_text(artist_name, song_title):
try:
song = genius.search_song(title=song_title, artist=artist_name)
lyrics = song.lyrics
if "Lyrics" in lyrics:
lyrics = lyrics.split("Lyrics")[1].strip()
if "Read More" in lyrics:
lyrics = lyrics.split("Read More")[1].strip()
lyrics = '\n'.join(lyrics.split('\n')[1:])
return lyrics
except Timeout:
sleep(5)
Expand Down
4 changes: 4 additions & 0 deletions docs/architecture/reports/transition-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Transition report
## Questions and Answers
### 1. Is the product complete? Which parts are done and which aren’t done?
#### Customer is satisfied with the product.
Loading