finish setup data insertion, add world insertion

This commit is contained in:
lbenedar
2026-04-22 18:18:43 +03:00
parent 21abe68858
commit f46ff8333e
66 changed files with 2257 additions and 676 deletions

View File

@@ -32,6 +32,7 @@ func (w *Wall) ToDB(dest *db.Wall) bool {
dest.ID = w.ID
w.Threshold.ToDB(&dest.Threshold)
dest.C = make([]int, len(w.C))
copy(dest.C, w.C)
return true