Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 40 lines (24 sloc) 0.56 kB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
dashboard manager
~~~~~~~~~~~~~~~~~
This module contains the management functionality.
"""
import os
import redi
from flaskext.script import Manager
from dash import app, g, redis_connect
from dash.views.index import view_sync_url
manager = Manager(app)
app.test_request_context('/').push()
redi.config.init(r=redis_connect())
@manager.command
def clear_db():
r = redis_connect()
r.flushall()
@manager.command
def sync():
view_sync_url()
if __name__ == '__main__':
manager.run()
Jump to Line
Something went wrong with that request. Please try again.