batch gdb generation bug fix 1

This commit is contained in:
Hamid Reza Mohammadi 2021-11-24 21:00:17 +03:30
parent 1e3ea4b925
commit 8b8345a134
2 changed files with 9 additions and 3 deletions

View File

@ -8,8 +8,8 @@
},
"AllowedHosts": "*",
"GoogleAnalyticsCode": "",
"APIRoot": "https://ganjgah.ir",
"GlobalAPIRoot": "https://ganjgah.ir",
"APIRoot": "http://localhost:3439",
"GlobalAPIRoot": "http://localhost:3439",
"SiteUrl": "http://localhost:33081",
"AggressiveCacheEnabled": "False",
"ReadOnlyMode": "False",

View File

@ -77,7 +77,13 @@ namespace RMuseum.Services.Implementation
await jobProgressServiceEF.UpdateJob(job.Id, poet.Id);
string gdbFile = (await _ExportToSqlite(context, poet.Id, outDir, null, false)).Result;
var gdbGeneration = await _ExportToSqlite(context, poet.Id, outDir, null, false);
if(!string.IsNullOrEmpty(gdbGeneration.ExceptionString))
{
await jobProgressServiceEF.UpdateJob(job.Id, 100, "", false, gdbGeneration.ExceptionString);
return;
}
string gdbFile = gdbGeneration.Result;
string pngFile = Path.Combine(imgDir, $"{poet.Id}.png");
bool hasImage = File.Exists(pngFile);