Skip to content

Commit

Permalink
#155 finding poem rhymes while importing data from sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
hrmoh committed Jun 17, 2021
1 parent 894569e commit 93725f4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ private async Task<string> _ImportSQLiteCatChildren(RMuseumDbContext context, ID
await context.SaveChangesAsync();//id set should be in order
}


var poemRhymeLettersRes = LanguageUtils.FindRhyme(poemVerses);
if(!string.IsNullOrEmpty(poemRhymeLettersRes.Rhyme))
{
dbPoem.RhymeLetters = poemRhymeLettersRes.Rhyme;
context.GanjoorPoems.Update(dbPoem);
}


GanjoorPage dbPoemPage = new GanjoorPage()
{
Id = poemId,
Expand Down

0 comments on commit 93725f4

Please sign in to comment.