Skip to content

Commit

Permalink
fix code related to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocorallo committed Jul 6, 2024
1 parent 5ba9c9d commit ec6ae7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void WriteToFile(string outFolder, string pathFile)
public static void WriteAllIndexes(RankingsSet rankingsSet, string outFolder, ArgsConfig argsConfig)
{
//now let's write each single different index
BySchoolYearJson.From(rankingsSet)?.WriteToFile(outFolder, BySchoolYearJson.CustomPath);
BySchoolYearJson.From(rankingsSet).WriteToFile(outFolder, BySchoolYearJson.CustomPath);
ByYearSchoolJson.From(rankingsSet)?.WriteToFile(outFolder, ByYearSchoolJson.CustomPath);
BySchoolYearCourseJson.From(rankingsSet)?.WriteToFile(outFolder, BySchoolYearCourseJson.CustomPath);
BySchoolYearCourseJson.From(rankingsSet).WriteToFile(outFolder, BySchoolYearCourseJson.CustomPath);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public int CompareTo(SingleCourseJson? singleCourseJson)

return 0;
}

public int GetHashWithoutLastUpdate()
{
var hashWithoutLastUpdate = Link?.GetHashCode() ?? "Link".GetHashCode();
Expand Down
5 changes: 2 additions & 3 deletions PoliNetwork.Graduatorie.Parser/Objects/RankingNS/Ranking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using PoliNetwork.Graduatorie.Parser.Objects.Json.Stats;
using PoliNetwork.Graduatorie.Parser.Objects.Tables.Course;
using PoliNetwork.Graduatorie.Parser.Objects.Tables.Merit;
using PoliNetwork.Graduatorie.Parser.Utils;
using PoliNetwork.Graduatorie.Parser.Utils.Output;

#endregion
Expand Down Expand Up @@ -189,7 +188,7 @@ public int GetHashWithoutLastUpdate()
i ^= Url?.GetHashWithoutLastUpdate() ?? "Url".GetHashCode();
i ^= Year?.GetHashCode() ?? "Year".GetHashCode();
var iMerit = ByMerit?.GetHashWithoutLastUpdate();
i ^= Hashing.GetHashFromListHash(iMerit) ?? "ByMerit".GetHashCode();
i ^= iMerit ?? "ByMerit".GetHashCode();


if (ByCourse == null)
Expand All @@ -198,7 +197,7 @@ public int GetHashWithoutLastUpdate()
i = ByCourse.Aggregate(i, (current, variable) =>
{
var hashWithoutLastUpdate = variable.GetHashWithoutLastUpdate();
var iList = Hashing.GetHashFromListHash(hashWithoutLastUpdate) ?? "empty".GetHashCode();
var iList = hashWithoutLastUpdate;
return current ^ iList;
});

Expand Down

0 comments on commit ec6ae7d

Please sign in to comment.