fix: walls r1 review — server (ref #52)

This commit is contained in:
2026-11-20 08:42:50 +01:00
parent f9f26a4a01
commit e1a5b297e4
11 changed files with 198 additions and 167 deletions
+2 -2
View File
@@ -33,7 +33,7 @@
## the entity FK). This module does no locking: the caller holds the server's global lock (4.3).
import std/[algorithm, json, options, strutils, tables, times]
import db_connector/db_sqlite
import crypto, geometry, props, text, world
import crypto, db, geometry, props, text, world
import std/math except round
export text # `validText` stays reachable for the modules and tests that imported it via tokens
@@ -277,7 +277,7 @@ proc sqlLitId(id: Option[string]): string =
for c in v:
if c notin {'A'..'Z', 'a'..'z', '0'..'9', '_', '-'}:
raise newException(ValueError, "character id outside the id alphabet")
"'" & v & "'"
sqlLitText(v)
proc writeStatuses*(db: DbConn, t: TokenRec) =
## Rewrites the token's `entity_status` rows to exactly `t.statuses`. No transaction control: the