Skip to content

Commit

Permalink
Created new csv with all the reference fields populated (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-c-dfe authored Jul 18, 2024
1 parent 0f8d4d2 commit c944c4e
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
<ProjectReference Include="..\..\src\Dfe.EarlyYearsQualification.Content\Dfe.EarlyYearsQualification.Content.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="csv\" />
</ItemGroup>

<ItemGroup>
<None Update="csv\ey-quals-full-2024-updated.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="csv\reference-upload-test.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="csv\ey-quals-full-2024-with-new-reference-fields.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion content/Dfe.EarlyYearsQualification.ContentUpload/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public static class Program
private const string Locale = "en-GB";
private const string SpaceId = "";
private const string ManagementApiKey = "";
private const string CsvFile = "./csv/ey-quals-full-2024-with-new-reference-fields.csv";

// ReSharper disable once UnusedParameter.Global
// ...args standard for Program.Main()
Expand Down Expand Up @@ -292,7 +293,7 @@ private static Entry<dynamic> BuildEntryFromQualification(QualificationUpload qu

private static List<QualificationUpload> GetQualificationsToAddOrUpdate()
{
var lines = ReadCsvFile("./csv/reference-upload-test.csv");
var lines = ReadCsvFile(CsvFile);

var listObjResult = new List<QualificationUpload>();

Expand Down
Loading

0 comments on commit c944c4e

Please sign in to comment.