mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix #16
parent
256f08396f
commit
02bffab38f
|
@ -35,9 +35,6 @@
|
|||
console.log(trend)
|
||||
console.log(music)
|
||||
|
||||
// Sort recent by date
|
||||
user.recent.sort((a, b) => b.playDate < a.playDate ? -1 : 1)
|
||||
|
||||
d = {user, trend, recent: user.recent.map(it => {return {...music[it.musicId], ...it}})}
|
||||
localStorage.setItem("tmp-user-details", JSON.stringify(d))
|
||||
renderCal(calElement, trend.map(it => {return {date: it.date, value: it.plays}}))
|
||||
|
|
|
@ -53,7 +53,7 @@ interface GenericUserDataRepo<T : IGenericUserData, ID> : JpaRepository<T, ID> {
|
|||
interface IGenericGamePlaylog {
|
||||
val musicId: Int
|
||||
val level: Int
|
||||
val date: Any
|
||||
val userPlayDate: Any
|
||||
val achievement: Int
|
||||
val maxCombo: Int
|
||||
val isFullCombo: Boolean
|
||||
|
@ -102,7 +102,7 @@ fun genericUserSummary(
|
|||
lastSeen = user.lastPlayDate.toString(),
|
||||
lastVersion = user.lastRomVersion,
|
||||
ratingComposition = ratingComposition,
|
||||
recent = plays.sortedBy { it.date.toString() }.takeLast(15)
|
||||
recent = plays.sortedBy { it.userPlayDate.toString() }.takeLast(15).reversed()
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -162,12 +162,6 @@ public class UserPlaylog implements Serializable, IGenericGamePlaylog {
|
|||
return playerRating;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getDate() {
|
||||
return playDate.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBeforeRating() {
|
||||
return playerRating; // TODO: Get before rating
|
||||
|
|
|
@ -265,12 +265,6 @@ public class UserPlaylog implements Serializable, IGenericGamePlaylog {
|
|||
@JsonProperty("extBool1")
|
||||
private boolean extBool1;
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Object getDate() {
|
||||
return playDate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCombo() {
|
||||
return maxCombo == totalCombo;
|
||||
|
|
|
@ -160,12 +160,6 @@ public class UserPlaylog implements Serializable, IGenericGamePlaylog {
|
|||
|
||||
private int battlePoint;
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Object getDate() {
|
||||
return playDate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAchievement() {
|
||||
return techScore;
|
||||
|
|
Loading…
Reference in New Issue