def locHist(guser=None, details=None, target=None):
     return stackptr_core.locHist(target=target, guser=guser, db=db)
def lochist():
	target = request.args.get('uid', g.user.id)
	return json.dumps(stackptr_core.locHist(target=target, guser=g.user, db=db))