Switch to unified view

a/scripts/purge_project.py b/scripts/purge_project.py
...
...
22
    log.info('Purging %s', pname)
22
    log.info('Purging %s', pname)
23
    project = M.Project.query.get(shortname=pname)
23
    project = M.Project.query.get(shortname=pname)
24
    if project is None:
24
    if project is None:
25
        log.fatal('Project %s not found', pname)
25
        log.fatal('Project %s not found', pname)
26
        return 2
26
        return 2
27
    if sys.argv[2] == 'test':
27
    if len(sys.argv) == 3:
28
        log.info('Test mode, not purging project')
28
        log.info('Test mode, not purging project')
29
    else:
29
    else:
30
        purge_project(project)
30
        purge_project(project)
31
    return 0
31
    return 0
32
32