From 232c5a5421bb9a8071a6531a74bc17414c971a36 Mon Sep 17 00:00:00 2001 From: j4ck <50369519+j4cegh@users.noreply.github.com> Date: Fri, 3 Jun 2022 00:04:46 +0300 Subject: [PATCH] Teeny changes --- RSND/Core/Database.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/RSND/Core/Database.cs b/RSND/Core/Database.cs index 9cc163a..e384a7c 100644 --- a/RSND/Core/Database.cs +++ b/RSND/Core/Database.cs @@ -58,11 +58,6 @@ public class Database Save(); } - private static string GetRowsJson(Row[]? rows) - { - return JsonConvert.SerializeObject(new { Rows = rows }); - } - public string GetValue(GetQuery? query) { Console.WriteLine(_tables.Count.ToString().Pastel("#ff0000")); @@ -78,8 +73,8 @@ public class Database var tableToReturn = _tables.Find(x => x.Name == table); var rows = tableToReturn?.Rows?.Where(x => x.Columns?.FirstOrDefault(y => y.Name == colName)?.Value == value).ToArray(); - - return GetRowsJson(rows); + + return JsonConvert.SerializeObject(rows); } public static void Loop()