From 8d5fa586cabaec31df830922fb7ff0fe9fabde5f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 1 Nov 2025 11:44:30 +0200 Subject: [PATCH] protect against MariaDB crash --- parsers/survex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/survex.py b/parsers/survex.py index fba17e069..7cd430d62 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -1229,7 +1229,7 @@ class LoadingSurvex: reftxt = refline.groups()[0] # only one item in this tuple if reftxt: # only store it if not an empty string - survexblock.ref_text = reftxt + survexblock.ref_text = reftxt[:399] # truncate or MariaDB crashes on databaseReset ! survexblock.save() return