parent
aef42dc615
commit
3d3b5d989e
@ -28,5 +28,10 @@ namespace RMuseum.Models.Ganjoor
|
||||
/// is root cat
|
||||
/// </summary>
|
||||
public bool PoetCat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// row number in category
|
||||
/// </summary>
|
||||
public int RowNmbrInCat { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -7217,6 +7217,11 @@
|
||||
is root cat
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.CategoryWordCount.RowNmbrInCat">
|
||||
<summary>
|
||||
row number in category
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:RMuseum.Models.Ganjoor.CorrectionReviewResult">
|
||||
<summary>
|
||||
correction review result
|
||||
|
||||
@ -93,11 +93,13 @@ namespace RMuseum.Services.Implementation
|
||||
await jobProgressServiceEF.UpdateJob(job.Id, poet.Id, poet.Nickname + $": Removing old data {catId}");
|
||||
}
|
||||
}
|
||||
await jobProgressServiceEF.UpdateJob(job.Id, poet.Id, poet.Nickname + $": In Memory => DbContext - {wordCounts.Count}");
|
||||
await jobProgressServiceEF.UpdateJob(job.Id, poet.Id, poet.Nickname + $": In Memory => DbContext - {wordCounts.Count} - Sorting:");
|
||||
if (wordCounts.Any())
|
||||
{
|
||||
wordCounts.Sort((a, b) => b.Count.CompareTo(a.Count));
|
||||
for (int i = 0; i < wordCounts.Count; i++)
|
||||
{
|
||||
wordCounts[i].RowNmbrInCat = i + 1;
|
||||
context.Add(wordCounts[i]);
|
||||
await jobProgressServiceEF.UpdateJob(job.Id, poet.Id, poet.Nickname + $": Saving {i} of {wordCounts.Count}, {wordCounts[i].Word}");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user