Revert "some shortcuts for easier administrations"
This reverts commit 89c0ebfe7a.
This commit is contained in:
parent
89c0ebfe7a
commit
2541bb3bd1
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user