added updated piazza.lmdb, debugger, and set bitser to not serialize metatables

This commit is contained in:
Brian Sakal
2022-05-19 17:10:28 -04:00
parent e88ee5fe74
commit e43d62b6cf
6 changed files with 24 additions and 21 deletions
+3 -10
View File
@@ -7,13 +7,6 @@ local item = require('./models/item')
user.setdb(db)
item.setdb(db)
user.new({
username = 'brian',
password = 'buginoO1$',
firstname = 'Brian',
lastname = 'Sakal',
is_admin = true
})
user.new({
username = 'guest',
password = 'buginoo',
@@ -21,9 +14,9 @@ user.new({
lastname = 'Beast'
})
user.new({
username = 'w',
password = 'w',
firstname = 'Test',
username = 'admin',
password = 'admin',
firstname = 'Demo Admin',
lastname = 'User',
is_admin = true
})
+1
View File
@@ -7,6 +7,7 @@ end})
--local binser = require'binser'
local bitser = require'bitser/bitser'
bitser.includeMetatables(false)
local lrandom = require'random' -- 'lrandom' luarocks package
local lrandom_sequence = lrandom.new(os.time())
Binary file not shown.
+4
View File
@@ -17,6 +17,9 @@ local lpeg = require "lpeg"
local uri_patts = require "lpeg_patterns.uri"
local cjson = require "cjson"
local mimetypes = require "mimetypes"
local dbg = require("debugger")
local api = require './piazza-api-lmdb'
local replyJSON = function(t, stream)
@@ -261,6 +264,7 @@ local function reply(myserver, stream)
function(err)
print('ERROR: ', err)
print(debug.traceback())
-- dbg()
end)
end