Exemple #1
0
def monitor_comments():
    from myapp.config import config
    from myapp.lib.monitor import Monitor
    make_app()
    username = config.get('Reddit', 'username')
    password = config.get('Reddit', 'password')
    m = Monitor(username=username, password=password, delay=10)
    m.monitor_comments()
Exemple #2
0
def monitor_posts():
    from myapp.config import config
    from myapp.lib.monitor import Monitor

    make_app()
    username = config.get("Reddit", "username")
    password = config.get("Reddit", "password")
    m = Monitor(username=username, password=password, delay=150)
    m.monitor_posts()
Exemple #3
0
def cleandb():
    from myapp.lib.monitor import Monitor

    make_app()
    m = Monitor()
    m.cleandb()
Exemple #4
0
def cleandb():
    from myapp.lib.monitor import Monitor
    make_app()
    m = Monitor()
    m.cleandb()
Exemple #5
0
def cleandb(request):
    rm = Monitor()
    rm.cleandb()
    return serve_text('db cleaned: ' + datetime.now().isoformat(' '))