batch gdb generation bug fix 1
This commit is contained in:
parent
1e3ea4b925
commit
8b8345a134
@ -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",
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user