Skip to content

Commit

Permalink
apply internal data corrections for importers
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Jun 20, 2024
1 parent 4f1e5eb commit 34c3abb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/FMBot.Bot/Factories/DataSourceFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public async Task<Response<TopArtistList>> GetTopArtistsAsync(string lastFmUserN
if (importUser != null && timeSettings.StartDateTime < importUser.LastImportPlay)
{
topArtists = await this._playDataSourceRepository.GetTopArtistsAsync(importUser, timeSettings, count * amountOfPages);
await CorrectTopArtistNamesInternally(topArtists);
AddArtistTopList(topArtists, lastFmUserName);
return topArtists;
}
Expand Down
1 change: 0 additions & 1 deletion src/FMBot.Bot/Services/WhoKnows/CrownService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public async Task<CrownModel> GetAndUpdateCrownForArtist(List<WhoKnowsObjectWith
return null;
}


await using var connection = new NpgsqlConnection(this._botSettings.Database.ConnectionString);
await connection.OpenAsync();

Expand Down
2 changes: 1 addition & 1 deletion src/FMBot.Bot/TextCommands/LastFM/AlbumCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public async Task AlbumCoverAsync([Remainder] string albumValues = null)
"Albums released in decade: `d:80s`, `decade:1990`",
Constants.UserMentionExample, Constants.BillboardExample, Constants.EmbedSizeExample)]
[Examples("tab", "topalbums", "tab a lfm:fm-bot", "topalbums weekly @user", "tab bb xl")]
[Alias("abl", "abs", "tab", "albumlist", "top albums", "albums", "albumslist")]
[Alias("abl", "abs", "tab", "albumlist", "top albums", "albums", "albumslist", "talbum")]
[UsernameSetRequired]
[SupportsPagination]
[CommandCategories(CommandCategory.Albums)]
Expand Down
2 changes: 1 addition & 1 deletion src/FMBot.Bot/TextCommands/LastFM/TrackCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public async Task ScrobbleAsync([Remainder] string trackValues = null)
[Options(Constants.CompactTimePeriodList, Constants.UserMentionExample,
Constants.BillboardExample, Constants.EmbedSizeExample)]
[Examples("tt", "toptracks", "tt y", "toptracks weekly @user", "tt bb xl")]
[Alias("tt", "tl", "tracklist", "tracks", "trackslist", "top tracks", "top track")]
[Alias("tt", "tl", "tracklist", "tracks", "trackslist", "top tracks", "top track", "ttracks")]
[UsernameSetRequired]
[SupportsPagination]
[CommandCategories(CommandCategory.Tracks)]
Expand Down

0 comments on commit 34c3abb

Please sign in to comment.