view website/issues/detectors/severityauditor.py @ 6164:a9fcb4b0bad9

Change image url for sourceforge to use https. Makes chrome now report page is secure. It was a mix of http and https content and thus not secure.
author John Rouillard <rouilj@ieee.org>
date Wed, 13 May 2020 00:50:36 -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/