view website/issues/detectors/severityauditor.py @ 8309:81ca7ceb71db

build: issue2551397: remove support for python 3.6 Try CI build on python 3.7. If this fails go to python 3.8 build.
author John Rouillard <rouilj@ieee.org>
date Sun, 11 May 2025 17:13:31 -0400
parents 0942fe89e82e
children
line wrap: on
line source


def init_severity(db, cl, nodeid, newvalues):
    """Make sure severity is set on new issues"""
    if 'severity' in newvalues and newvalues['severity']:
        return

    normal = db.severity.lookup('normal')
    newvalues['severity'] = normal

def init(db):
    db.issue.audit('create', init_severity)

Roundup Issue Tracker: http://roundup-tracker.org/