#151 saving prosody information sooner
This commit is contained in:
parent
c8b915af01
commit
c962386334
@ -3092,18 +3092,20 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
poem.GanjoorMetreId = metres.Where(m => m.Rhythm == res.Result).Single().Id;
|
||||
context.GanjoorPoems.Update(poem);
|
||||
await context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
poem.GanjoorMetreId = preDeterminedMetre.Id;
|
||||
context.GanjoorPoems.Update(poem);
|
||||
await context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
await jobProgressServiceEF.UpdateJob(job.Id, 99);
|
||||
await context.SaveChangesAsync();
|
||||
|
||||
await jobProgressServiceEF.UpdateJob(job.Id, 100, "", true);
|
||||
}
|
||||
catch (Exception exp)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user