Skip to content

Commit f4a484f

Browse files
fix: cheer points and allow decimals (#160)
1 parent 4e7d15e commit f4a484f

20 files changed

+544
-63
lines changed

SubathonManager.Core/Models/SubathonValue.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class SubathonValue
1818
// in future, may want to add a condition column to compare stuff with? i.e., raids of min viewer count
1919

2020
public double Seconds { get; set; } = 0;
21-
public int Points { get; set; } = 0;
21+
public double Points { get; set; } = 0;
2222

2323

2424
public SubathonValueDto ToObject()
@@ -53,7 +53,7 @@ public bool PatchByObject(SubathonValueDto dto)
5353

5454
if (dto.Points != null && dto.Points >= 0 && !Points.Equals(dto.Points))
5555
{
56-
Points = (int) dto.Points;
56+
Points = (double) dto.Points;
5757
modified = true;
5858
}
5959

@@ -70,7 +70,7 @@ public class SubathonValueDto
7070
public SubathonEventSource Source { get; set; }
7171
public string Meta { get; set; } = "";
7272
public double? Seconds { get; set; }
73-
public int? Points { get; set; }
73+
public double? Points { get; set; }
7474

7575
public override string ToString()
7676
{

0 commit comments

Comments
 (0)