Ejemplo n.º 1
0
def show_index():
    channels = db.get_channels(PG_CONNECT, None, datetime.strptime(date.today().isoformat(), '%Y-%m-%d').date())
    return bottle.template('main', channels=channels)
Ejemplo n.º 2
0
def show_channel(channel, date=date.today().isoformat()):
    date = datetime.strptime(date, '%Y-%m-%d').date()
    channel = channel.replace(',', '#')
    channels = db.get_channels(PG_CONNECT, channel, date)
    messages = db.get_messages(PG_CONNECT, channel, date)
    return bottle.template('main', channels=channels, channel=channel, messages=messages, date=date)
Ejemplo n.º 3
0
Archivo: app.py Proyecto: RX14/timber
def show_index():
    channels = db.get_channels(PG_CONNECT, None)
    return bottle.template('main', channels=channels)