2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-19 06:17:15 +00:00

protect against MariaDB crash

This commit is contained in:
2025-11-01 11:44:30 +02:00
parent 7e5201edc6
commit 8d5fa586ca

View File

@@ -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