Cleaned up some warnings, and fixed issue where no Year records were being retrieved #37
This commit is contained in:
@@ -247,7 +247,7 @@ namespace Icarus.Controllers.Managers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task SaveSong(SongData songData)
|
public void SaveSong(SongData songData)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -413,7 +413,7 @@ namespace Icarus.Controllers.Managers
|
|||||||
|
|
||||||
return _songs;
|
return _songs;
|
||||||
}
|
}
|
||||||
public async Task<Song> RetrieveSongDetails(int id)
|
public Song RetrieveSongDetails(int id)
|
||||||
{
|
{
|
||||||
DataTable results = new DataTable();
|
DataTable results = new DataTable();
|
||||||
|
|
||||||
@@ -456,7 +456,7 @@ namespace Icarus.Controllers.Managers
|
|||||||
SongData song = new SongData();
|
SongData song = new SongData();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_song = await RetrieveSongDetails(id);
|
_song = RetrieveSongDetails(id);
|
||||||
song = await RetrieveSongFromFileSystem(_song);
|
song = await RetrieveSongFromFileSystem(_song);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ namespace Icarus.Controllers.Utilities
|
|||||||
public class SongCompression
|
public class SongCompression
|
||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
string _archiveDirectory;
|
|
||||||
string _compressedSongFilename;
|
string _compressedSongFilename;
|
||||||
string _tempDirectory;
|
string _tempDirectory;
|
||||||
byte[] _uncompressedSong;
|
byte[] _uncompressedSong;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace Icarus.Database.Repositories
|
|||||||
|
|
||||||
var query = "SELECT yr.*, COUNT(*) AS SongCount FROM Year " +
|
var query = "SELECT yr.*, COUNT(*) AS SongCount FROM Year " +
|
||||||
"yr LEFT JOIN Song sng ON yr.YearId=sng.YearId " +
|
"yr LEFT JOIN Song sng ON yr.YearId=sng.YearId " +
|
||||||
"GROUP BY gnr.YearId";
|
"GROUP BY yr.YearId";
|
||||||
|
|
||||||
using (var cmd = new MySqlCommand(query, conn))
|
using (var cmd = new MySqlCommand(query, conn))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user