def index(name=None): from database import dbClient dblogs = nicePrint( dbClient.read(channel=name) ) channels = [x[0] for x in dbClient.listChannel()] active_channels = getActiveChannels(channels) return render_template("index.html", logs = dblogs, channel_list=channels, active_list=active_channels)
def index(name=None): from database import dbClient dblogs = nicePrint(dbClient.read(channel=name)) channels = [x[0] for x in dbClient.listChannel()] active_channels = getActiveChannels(channels) return render_template("index.html", logs=dblogs, channel_list=channels, active_list=active_channels)
def channel_ajax(name): from database import dbClient dblogs = nicePrint(dbClient.read(channel=name)) return json.dumps(dblogs)
def all_chann(): from database import dbClient dblogs = nicePrint(dbClient.read()) return json.dumps(dblogs)
def channel_ajax(name): from database import dbClient dblogs = nicePrint( dbClient.read(channel=name) ) return json.dumps( dblogs )
def all_chann(): from database import dbClient dblogs = nicePrint( dbClient.read() ) return json.dumps( dblogs )