Skip to content

Commit

Permalink
fix: save score for online charts
Browse files Browse the repository at this point in the history
  • Loading branch information
LingFeng-bbben committed Oct 13, 2024
1 parent a41e689 commit e1c497f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Assets/Script/Misc/Types/DataFormats/SongDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ public async Task<SongDetail> DumpToLocal()
}

var info = new DirectoryInfo(dir);
return await ParseAsync(info.GetFiles());
var song = await ParseAsync(info.GetFiles());
song.Hash = Hash;
return song;
}

}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Script/Utils/SongStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static async Task<SongCollection> GetOnlineCollection(string apiroot)
TrackPath = apiroot + "/Track/" + song.Id,
BGPath = apiroot + "/ImageFull/" + song.Id,
CoverPath = apiroot + "/Image/" + song.Id,
Hash = song.Id.ToString(),
Hash = song.Id.ToString()+"//" + song.Timestamp,
AddTime = dateTime
};
for (int i = 0; i < songDetail.Designers.Count(); i++)
Expand Down

0 comments on commit e1c497f

Please sign in to comment.