diff --git a/src/KPI Generator/Reportings/User/UserReporting.cs b/src/KPI Generator/Reportings/User/UserReporting.cs index 2fd06274fed60d11dc2aebcdd56f45cc6389d963..87c23ba768babb42c3468288aa7c4daa0b54407a 100644 --- a/src/KPI Generator/Reportings/User/UserReporting.cs +++ b/src/KPI Generator/Reportings/User/UserReporting.cs @@ -201,6 +201,19 @@ public class UserReporting : Reporting<UserReportingOptions> } } + // Special case until `https://ror.org/%20https://ror.org/` is moved to `https://ror.org/_other` + if (result.Any(o => o.RorUrl.Equals("https://ror.org/%20https://ror.org/"))) + { + foreach (var entry in result) + { + if (entry.RorUrl.Equals("https://ror.org/%20https://ror.org/")) + { + entry.Name = _otherOrganization.Name; + entry.RorUrl = _otherOrganization.RorUrl; + } + } + } + return result.DistinctBy(e => e.RorUrl).ToList(); }