Exemple #1
0
def clear_sessions(ctx, months=1, dry_run=False):
    from website.app import init_app

    init_app(routes=False, set_backends=True)
    from scripts import clear_sessions

    clear_sessions.clear_sessions_relative(months=months, dry_run=dry_run)
Exemple #2
0
def clear_sessions(months=1, dry_run=False):
    from website.app import init_app
    init_app(routes=False, set_backends=True)
    from scripts import clear_sessions
    clear_sessions.clear_sessions_relative(months=months, dry_run=dry_run)