Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* archive coverage.xml and run upload_coverage only if pushing to master * removed lint job and added it in tox * added handling invalid code parameter in Genius callback * reduced test time significantly by resetting mocks instead of creating new ones for every test (context and update fixtures) * added comment lines to visually separate fixtures in conftest * added creating users in context.user_data dynamically by language * add development branch to github workflow * apply black formatting * make black check all files * fix TokenHandler callback endpoint * fix test_token_handler * applied black formatting * - added bot's Telegram link to readme - fixed typo in fa.yaml * - fixed accessing tests using bot instead of bot_data - fixed typo in en texts * - added music recommender - refactored some parts to fit the music recommender in * added scikit-learn to requirements * removed test raise * added logging for badrequest error * fixed missing argument error in token request handler * - fixed token value error for spotify in token handler - fixed updating correct token in database * switch to refreshing credentials to get refreshing token * fix insert error * use tuple instead of list in upsert * add recommender api to webserver * fix wrong import * fix attribute access * improve matches for artist search by lowering possibilities and decreasing cutoff * - added parameters to the recommendations endpoint - added more fields to the tracks * fix concat error * fix comparison issue for np.nan values * replace np.nan with None in tracks * fixed key in response * return artist with correct case in recommender.search_artist * removed redundant search for song file * - store download_url in user data since datasets already have it - fixed issue where song artist wasn't found (songs with no corresponding artist in artists) * songs dataframe keeps genre column, fixed shuffle returning wrong results * removed has_download_url and has_preview_url and replaced it with song_type parameter * fix typo * added temporary fix for when displaying lyrics fails * - recommender now returns Song objects which have ids (row index) - language parameter was removed in favor of the "persian" genre - added recommender.song method * added preview and download link when displaying recommended songs * add persian to genres if user language is "fa" * fix display of song and its urls * end all returns ending in fallback for shuffle conv handler * disabled error handler * fixed sending artist object instead of name * added debug statement * fixed getting song by id_spotify from recommender * improve audio info when sending song * fix spotify artist name in download_song * fix typo * add caption when sending audio from display_song * add parameter to function logger * Revert "add parameter to function logger" This reverts commit 4f77442. * removed logging function return value * convert it to int * add download button for song from external source * fix spotify search issues * fixed UnboundLocalError * improve spotify search matching * fix typo * update outdated info * fix RuntimeWarning await error * add debug statement * fix typo * fixed passing bs4 object to bs4 * improve spotify search matching by removing space char * added all activities count to account display * changed forcing all user genres in song to only forcing one of user genres in song * added user endpoint * added user endpoint to main menu, added TYPING_USER constant * added searching songs by lyrics * fixed message handler redirecting user back to typing user, fixed search lyrics not in inline menu choices, fixed lyrics search hits number, * fixed no effective_chat from inline queries * fixed empty input text in inline query * fixed no pageview in stats for inline queries * added quotes to hrefs * moved thumb image to beginning of caption * fixed inline query result bugs * remove extra value for user query data * removed extra argument to user_caption * added cleaning user description * remove last message after user clicks on a search hit, don't remove inline buttons of entities so user can use them again * added head method to cron handler * fix deleting callback query message * fix displaying user in persian, improve lyrics search formatting * update persian inline query formatting * improved "hot" translation in persian * fixed typos * moved web server to server.py * updated readme * fix img link in readme * fix title link and add more info to Shuffle * applied black formatting * removed unused var in loop * change db.update type hint to Any, ensure values in a tuple/list * rewrite genres_by_age to not use list comprehension for finding item * add type hint to display_user buttons var * use genres_by_age in input_age * fixed keyboard button in select_language * remove extra if statement in display_artist * remove extra if statement * change format_language return type to Any to stop mypy complaints * applied black formatting * add allowing redefinition to mypy * added spotify credentials to github workflow * remove lastfm api key * tests: add new objects to bot_data * move server tests to test_server.py * add test_server.py * updated test_server tests * tests: moved recommender to own fixture * tests: added tests for server * tests: add Sender and FaMusic to no coverage * tests: update user_data and fix bot tests * tests: update and add tests to db * tests: update and add tests to utils * added returning END to login_choices * tests: update and add tests to account * tests: update album tests * tests: update annotations tests * tests: update artist tests * fix displaying user with no roles * tests: update and added tests to inline_query * remove extra append * remove extra append * fixed selecting song with id = 0 * tests: added tests for recommender * tests: add test_recommender.py * tests: update and add song tests * tests: added user tests * tests: added missing import to test_user * applied black formatting * fixed mypy errors (ignored error lines) * fixed flake8 errors * applied black formatting to tests * tests: added checking login_choices return value * removed lastfm, FaMusic and Sender * change lyricsgenius dep to fork * revert removing lastfm * add no coverage to lastfm * add lastfm key to constants * remove FaMusic in bot * declare lastfm key in github workflow * fix merge issue of last commit * bump version * bump cryptography to 3.4.5
- Loading branch information