docs: #323 sectionizing poems imported from SQLite
This commit is contained in:
parent
011fc8d1c2
commit
f9ed897354
@ -430,22 +430,7 @@ namespace RMuseum.Services.Implementation
|
||||
|
||||
await _FillPoemCoupletIndices(context, poemId);
|
||||
|
||||
try
|
||||
{
|
||||
var poemRhymeLettersRes = LanguageUtils.FindRhyme(poemVerses);
|
||||
if (!string.IsNullOrEmpty(poemRhymeLettersRes.Rhyme))
|
||||
{
|
||||
dbPoem.RhymeLetters = poemRhymeLettersRes.Rhyme;
|
||||
context.GanjoorPoems.Update(dbPoem);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
GanjoorPage dbPoemPage = new GanjoorPage()
|
||||
{
|
||||
Id = poemId,
|
||||
@ -467,6 +452,8 @@ namespace RMuseum.Services.Implementation
|
||||
context.GanjoorPages.Add(dbPoemPage);
|
||||
await context.SaveChangesAsync();
|
||||
|
||||
await _SectionizePoem(context, dbPoem, jobProgressServiceEF, job);
|
||||
|
||||
catHtmlText += $"<p><a href=\"{dbPoemPage.FullUrl}\">{dbPoemPage.Title}</a></p>{Environment.NewLine}";
|
||||
|
||||
poemId++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user