Skip to content
Snippets Groups Projects
Commit c0a10b9d authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Fix: New special case to deal with 'https://ror.org/%20https://ror.org/'

parent fca9d21f
No related branches found
No related tags found
1 merge request!20Fix: User Reporting Institutes
Pipeline #865277 passed
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment