poem moderation bug fix

This commit is contained in:
Hamid Reza Mohammadi 2024-01-01 09:43:48 +03:30
parent efeb313e7b
commit 80711680e5
2 changed files with 10 additions and 1 deletions

View File

@ -203,6 +203,10 @@ namespace RMuseum.Services.Implementation
if (verses.Count == 2 && verseTextList.Count == 2)
{
rhyme = PrepareTextForFindingRhyme(verseTextList[1]);
if(rhyme.Length > 50)
{
rhyme = "";
}
return new GanjooRhymeAnalysisResult()
{
Rhyme = rhyme, //rhyme.Length > 50 condition check removed to search using prosody meters
@ -236,6 +240,11 @@ namespace RMuseum.Services.Implementation
};
}*/
if (rhyme.Length > 50)
{
rhyme = "";
}
return new GanjooRhymeAnalysisResult()
{
Rhyme = rhyme,

View File

@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=museum;Trusted_Connection=True;MultipleActiveResultSets=true"
"DefaultConnection": "Server=.;Database=museum;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=true;"
},
"RSecurityBackend": {
"ApplicationName": "Ganjoor",