Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
def channel_ajax(name):
    from database import dbClient
    dblogs = nicePrint(dbClient.read(channel=name))
    return json.dumps(dblogs)
Ejemplo n.º 4
0
def all_chann():
    from database import dbClient
    dblogs = nicePrint(dbClient.read())
    return json.dumps(dblogs)
Ejemplo n.º 5
0
def channel_ajax(name):
    from database import dbClient
    dblogs = nicePrint( dbClient.read(channel=name) )
    return json.dumps( dblogs )
Ejemplo n.º 6
0
def all_chann():
    from database import dbClient
    dblogs = nicePrint( dbClient.read() )
    return json.dumps( dblogs )