added updated piazza.lmdb, debugger, and set bitser to not serialize metatables
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
@@ -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.
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user