From da8ef2f113dd1cc8d372029697dcb0c7463a58d8 Mon Sep 17 00:00:00 2001 From: puls200 Date: Fri, 6 Oct 2023 14:41:32 +0200 Subject: [PATCH] bugfix --- src/BreCalClient/MainWindow.xaml.cs | 8 +++++++- src/server/BreCal/impl/shipcalls.py | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs index dc43dcc..69ffde7 100644 --- a/src/BreCalClient/MainWindow.xaml.cs +++ b/src/BreCalClient/MainWindow.xaml.cs @@ -16,6 +16,7 @@ using BreCalClient.misc.Client; using BreCalClient.misc.Model; using static BreCalClient.Extensions; +using System.Runtime.Serialization; namespace BreCalClient { @@ -295,12 +296,17 @@ namespace BreCalClient })); } catch (Exception ex) - { + { this.Dispatcher.Invoke(new Action(() => { labelGeneralStatus.Text = $"Connection {ConnectionStatus.FAILED}"; labelStatusBar.Text = ex.Message; })); + + if (ex.Message.Contains("access", StringComparison.OrdinalIgnoreCase)) + { + this.RefreshToken(null); + } } if (shipcalls != null) diff --git a/src/server/BreCal/impl/shipcalls.py b/src/server/BreCal/impl/shipcalls.py index fdf0b78..7aa8e95 100644 --- a/src/server/BreCal/impl/shipcalls.py +++ b/src/server/BreCal/impl/shipcalls.py @@ -82,6 +82,10 @@ def PostShipcalls(schemaModel): continue if key == "modified": continue + if key == "evaluation": + continue + if key == "evaluation_message": + continue if isNotFirst: query += "," isNotFirst = True