Skip to content

Commit

Permalink
Filter away deprecated robots in robotservice
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Feb 26, 2025
1 parent 201bff6 commit f565441
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions backend/api/Services/RobotService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,13 @@ private IQueryable<Robot> GetRobotsWithSubModels(bool readOnly = true)
#pragma warning disable CA1304
.Where(
(r) =>
r.CurrentInstallation == null
|| r.CurrentInstallation.InstallationCode == null
|| accessibleInstallationCodes.Result.Contains(
r.CurrentInstallation.InstallationCode.ToUpper()
!r.Deprecated
&& (
r.CurrentInstallation == null
|| r.CurrentInstallation.InstallationCode == null
|| accessibleInstallationCodes.Result.Contains(
r.CurrentInstallation.InstallationCode.ToUpper()
)
)
);
#pragma warning restore CA1304
Expand Down

0 comments on commit f565441

Please sign in to comment.