Revert "some shortcuts for easier administrations"

This reverts commit 89c0ebfe7a.
This commit is contained in:
Hamid Reza Mohammadi 2021-06-22 19:42:25 +04:30
parent 89c0ebfe7a
commit 2541bb3bd1

View File

@ -149,11 +149,9 @@ namespace RMuseum.Services.Implementation
}
int poemNumber = 0;
int count = 0;
foreach (var poem in await sqlite.QueryAsync($"SELECT * FROM poem ORDER BY id"))
{
poemNumber++;
await jobProgressServiceEF.UpdateJob(job.Id, poemNumber, "", false);
int poemId = (int)poem.id;
@ -259,13 +257,6 @@ namespace RMuseum.Services.Implementation
if (anyChanges)
{
count++;
if(count>10)
{
await jobProgressServiceEF.UpdateJob(job.Id, 100, "", true);
return;
}
GanjoorComment sysComment = new GanjoorComment()
{
UserId = userId,