fix: walls r1 review — server (ref #52)
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user