From 02d6206677c0f2b50d7dc0c64ac001b4f346c1ab Mon Sep 17 00:00:00 2001 From: Opportunity Date: Sun, 31 May 2020 19:29:09 +0800 Subject: [PATCH] fix bug --- EhTagApi/Controllers/ToolsController.cs | 6 ++++++ EhTagClient/DataBase.cs | 1 + 2 files changed, 7 insertions(+) diff --git a/EhTagApi/Controllers/ToolsController.cs b/EhTagApi/Controllers/ToolsController.cs index a94509e..87d9a26 100644 --- a/EhTagApi/Controllers/ToolsController.cs +++ b/EhTagApi/Controllers/ToolsController.cs @@ -16,6 +16,12 @@ namespace EhTagApi.Controllers [FormatFilter] public class ToolsController : ControllerBase { + private readonly Database _Database; + public ToolsController(Database database) + { + _Database = database; + } + [HttpHead("status")] public IActionResult Status() { diff --git a/EhTagClient/DataBase.cs b/EhTagClient/DataBase.cs index ac0d6e8..e31f33b 100644 --- a/EhTagClient/DataBase.cs +++ b/EhTagClient/DataBase.cs @@ -20,6 +20,7 @@ public Database(RepoClient repoClient) _Values[i] = new RecordDictionary(_Keys[i], repoClient); } Load(); + Render(); #if DEBUG Save(); #endif