Refactor database and item retreival

Change the ugly global slaves object to be a member of the db object and
implement the items database as a separate integrety verifying class in
lib/database.
This commit is contained in:
Hornwitser committed 2019-09-04 20:43:13 +02:00
1 parent 5d6f6de379
commit 651b09b613
14 files changed
+634 -188

No files matched your search

+1 -2
View File
@@ -15,8 +15,7 @@
<div id="display">
<%
let html = ""
for(let id in slaves){
let slave = slaves[id];
for(let [id, slave] of locals.slaves){
html += `
<div id="${id}" class="slaveBox card mb-3">
<div class="card-body">