Skip to content

Commit

Permalink
Merge pull request #17 from minisbett/master
Browse files Browse the repository at this point in the history
release: version 2.3.0
  • Loading branch information
minisbett authored Jul 27, 2024
2 parents 7bd4158 + ff61e23 commit 52ab11a
Show file tree
Hide file tree
Showing 17 changed files with 418 additions and 302 deletions.
100 changes: 100 additions & 0 deletions huisbot/Migrations/20240727104618_RenameScoreToResponse.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions huisbot/Migrations/20240727104618_RenameScoreToResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace huisbot.Migrations
{
/// <inheritdoc />
public partial class RenameScoreToResponse : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "score_json",
table: "cached_score_simulations",
newName: "response_json");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "response_json",
table: "cached_score_simulations",
newName: "score_json");
}
}
}
4 changes: 2 additions & 2 deletions huisbot/Migrations/DatabaseModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasColumnType("TEXT")
.HasColumnName("request_identifier");
b.Property<string>("ScoreJson")
b.Property<string>("ResponseJson")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("score_json");
.HasColumnName("response_json");
b.HasKey("RequestIdentifier")
.HasName("pk_cached_score_simulations");
Expand Down
2 changes: 1 addition & 1 deletion huisbot/Models/Huis/HuisPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class HuisPlayer
/// This skill only exists in some reworks, and therefore may be null.
/// </summary>
[JsonProperty("weighted_cognition_pp")]
public double? CognitionPP { get; private set; }
public double CogPP { get; private set; }

/// <summary>
/// The last time the player got updated on Huismetbenen.
Expand Down
2 changes: 1 addition & 1 deletion huisbot/Models/Huis/HuisRework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class HuisRework
/// <summary>
/// The rework ID of the live pp system.
/// </summary>
public static int LiveId => 1;
public const int LiveId = 1;

public override string ToString()
{
Expand Down
100 changes: 0 additions & 100 deletions huisbot/Models/Huis/HuisSimulatedScore.cs

This file was deleted.

Loading

0 comments on commit 52ab11a

Please sign in to comment.