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