diff --git a/api/fast_api.py b/api/fast_api.py index bce6d88..da6f200 100644 --- a/api/fast_api.py +++ b/api/fast_api.py @@ -32,7 +32,7 @@ correct_rows = [] -@app.get("/") +@app.get("/api") def root(): return {"message": "FastAPI is working!"} diff --git a/api/genius.py b/api/genius.py index f18d445..4705366 100644 --- a/api/genius.py +++ b/api/genius.py @@ -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) diff --git a/docs/architecture/reports/transition-report.md b/docs/architecture/reports/transition-report.md new file mode 100644 index 0000000..99651eb --- /dev/null +++ b/docs/architecture/reports/transition-report.md @@ -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. \ No newline at end of file