updated qodana profile

This commit is contained in:
bacon
2024-03-10 23:30:17 +03:00
parent 25afcc09a5
commit 2ea64d8141
2 changed files with 5 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ def search(_str: str, _type: str = 'all') -> dict:
type_ = search_result.best.type type_ = search_result.best.type
best = search_result.best.result best = search_result.best.result
# print(search_result)
if type_ == 'track': if type_ == 'track':
artists = '' artists = ''
if best.artists: if best.artists:
@@ -59,9 +60,11 @@ def search(_str: str, _type: str = 'all') -> dict:
_tracks += volume _tracks += volume
_i = 1 _i = 1
for track in _tracks: for track in _tracks:
print(track)
tracks[f"track_{_i}"] = { tracks[f"track_{_i}"] = {
"id": track.id, "id": track.id,
"tittle": track.title "tittle": track.title,
} }
_i += 1 _i += 1

View File

@@ -3,4 +3,4 @@ bootstrap: |
rm -rf .idea rm -rf .idea
pip install -r requirements.txt pip install -r requirements.txt
profile: profile:
name: qodana.starter name: qodana.recommended