Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using PoliNetwork.Graduatorie.Common.Enums;
using PoliNetwork.Graduatorie.Parser.Objects.RankingNS;
using PoliNetwork.Graduatorie.Parser.Objects.Tables.Course;

#endregion
Expand All @@ -19,6 +20,7 @@ public class SingleCourseJson
public string? Name;
public SchoolEnum? School;
public int? Year;
public RankingOrder? RankingOrder;

public int GetHashWithoutLastUpdate()
{
Expand Down Expand Up @@ -57,4 +59,4 @@ public bool Is(CourseTable courseTable)
{
return Name == courseTable.Title;
}
}
}
5 changes: 3 additions & 2 deletions PoliNetwork.Graduatorie.Parser/Objects/RankingNS/Ranking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public List<SingleCourseJson> ToSingleCourseJson()
BasePath = schoolString + "/" + Year + "/",
Year = Year,
School = School,
Location = variable.Location
Location = variable.Location,
RankingOrder = RankingOrder,
}));

return result;
Expand All @@ -136,4 +137,4 @@ public string GetPath()
{
return School + "/" + Year + "/" + RankingOrder?.Phase;
}
}
}