From 0c05bc7c3ed4f1e5fd07c57a67bf98342e1cd9fb Mon Sep 17 00:00:00 2001 From: user123456000 <140551706+user123456000@users.noreply.github.com> Date: Tue, 26 Dec 2023 22:19:18 +0500 Subject: [PATCH 1/2] Update GoogleSheetsModule.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Должно работать, наверное.... --- handlers/GoogleSheetsModule.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/handlers/GoogleSheetsModule.cs b/handlers/GoogleSheetsModule.cs index 749f8fd..b7d42da 100644 --- a/handlers/GoogleSheetsModule.cs +++ b/handlers/GoogleSheetsModule.cs @@ -93,7 +93,7 @@ private static void ReadEntries() if (values.IndexOf(row) == 0) continue; string nick = ""; if (row.Count > 3) - nick = row[3].ToString().Trim(); + nick = row[4].ToString().Trim(); if (gridRow > values.Count - 1) { break; } bool accepted = false; try @@ -114,11 +114,6 @@ private static void ReadEntries() } } } - catch (Exception ex) - { - Program.logError(ex.Message + ex.StackTrace); - } - if (discordAccountsList.ContainsKey(nick)) { gridRow += 1; From fcb275e10b0be3fcfecd50394831c9f995c3b346 Mon Sep 17 00:00:00 2001 From: Max <75096038+AltronMaxX@users.noreply.github.com> Date: Tue, 26 Dec 2023 21:49:17 +0400 Subject: [PATCH 2/2] Update GoogleSheetsModule.cs --- handlers/GoogleSheetsModule.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/handlers/GoogleSheetsModule.cs b/handlers/GoogleSheetsModule.cs index b7d42da..60b7fe2 100644 --- a/handlers/GoogleSheetsModule.cs +++ b/handlers/GoogleSheetsModule.cs @@ -92,7 +92,7 @@ private static void ReadEntries() { if (values.IndexOf(row) == 0) continue; string nick = ""; - if (row.Count > 3) + if (row.Count > 4) nick = row[4].ToString().Trim(); if (gridRow > values.Count - 1) { break; } bool accepted = false; @@ -114,6 +114,10 @@ private static void ReadEntries() } } } + catch (Exception ex) + { + Program.logError(ex.Message + ex.StackTrace); + } if (discordAccountsList.ContainsKey(nick)) { gridRow += 1;