Skip to content

Commit

Permalink
fix echarging update
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Nov 27, 2024
1 parent 4bbb4b2 commit bca324c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions OdhApiImporter/Helpers/NINJA/MobilityEchargingImportHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using SqlKata.Execution;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -289,10 +290,10 @@ private static List<Tuple<string, string>> GetDataProviderlist(NinjaObjectWithPa

//Console.WriteLine(String.Join(",", ninjadata.data.SelectMany(x => x.smetadata.outlets.Select(y => y.outletTypeCode)).Distinct().ToList()));



//Get all sources
return ninjadata.data.Select(x => Tuple.Create(x.porigin.ToLower(), x.pmetadata.provider.ToLower())).Distinct().ToList();

//Get all sources
return ninjadata.data.Select(x => Tuple.Create(x.porigin.ToLower(), x.pmetadata.provider != null ? x.pmetadata.provider.ToLower() : "")).Distinct().ToList();
}

private static List<Tuple<string, string>> GetAndParseProviderList(NinjaObjectWithParent<NinjaEchargingPlug, NinjaEchargingStation> ninjadata)
Expand Down

0 comments on commit bca324c

Please sign in to comment.