make sure the logs are clean of any global objects and SQL queries
This commit is contained in:
@@ -6,7 +6,7 @@ local preload = require("lapis.db.model").preload
|
||||
local models = autoload("models")
|
||||
|
||||
|
||||
function Artisthandler(self)
|
||||
local function Artisthandler(self)
|
||||
local artist_id = self.params.artist
|
||||
|
||||
local artist = models.Artists:find({ id = artist_id })
|
||||
|
||||
@@ -4,7 +4,7 @@ local to_json = require("lapis.util").to_json
|
||||
local autoload = require("lapis.util").autoload
|
||||
local models = autoload("models")
|
||||
|
||||
function Splhandler(self)
|
||||
local function Splhandler(self)
|
||||
-- print( to_json(self.params))
|
||||
|
||||
-- TODO: add auth-token
|
||||
|
||||
@@ -6,7 +6,7 @@ local preload = require("lapis.db.model").preload
|
||||
local models = autoload("models")
|
||||
|
||||
|
||||
function Stationhandler(self)
|
||||
local function Stationhandler(self)
|
||||
local station_id = self.params.station
|
||||
local json = self.params.json or nil
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ local preload = require("lapis.db.model").preload
|
||||
local models = autoload("models")
|
||||
|
||||
|
||||
function Trackhandler(self)
|
||||
local function Trackhandler(self)
|
||||
local track_id = self.params.track
|
||||
|
||||
local track = models.Tracks:find({ id = track_id })
|
||||
|
||||
Reference in New Issue
Block a user