docs: #323 sectionizing poems imported from SQLite

This commit is contained in:
Hamid Reza Mohammadi 2022-05-22 10:27:02 +04:30
parent 011fc8d1c2
commit f9ed897354

View File

@ -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++;