Skip to content

Commit

Permalink
#359 fix for ganfeld legacy datasets.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuotvez committed Sep 11, 2024
1 parent 065ea1d commit 3a99aaf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions GSCFieldApp/Services/DatabaseServices/DataIDCalculation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,12 @@ public int ExtractStationNoFromAlias(string stationAlias)
string lastNumber = string.Empty;
foreach (char c in lastNumbers)
{
//Rebuild number
lastNumber = lastNumber + c;
if (char.IsNumber(c))
{
//Rebuild number
lastNumber = lastNumber + c;
}

}
int lastCharacterNumber = Convert.ToInt32(lastNumber);

Expand Down

0 comments on commit 3a99aaf

Please sign in to comment.