clean code
This commit is contained in:
parent
f0e176ee6a
commit
7864cdb4c6
@ -94,10 +94,6 @@ namespace DualScreenDemo
|
||||
int songLimit = ReadHotSongLimit();
|
||||
string query = $"SELECT * FROM SongLibrary WHERE `語別` = '{category}' ORDER BY `點播次數` DESC LIMIT {songLimit}";
|
||||
var selectedSongs = SearchSongs_Mysql(query);
|
||||
/*var selectedSongs = allSongs.Where(song => song.Category == category)
|
||||
.OrderByDescending(song => song.Plays)
|
||||
.Take(songLimit)
|
||||
.ToList();*/
|
||||
|
||||
UpdateSongList(selectedSongs);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user