Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 7901:9ff94a2e8c82
test: update to handle crypt not available
crypt is not supported in 3.13 and newer. Update test using
crypt to work.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 20 Apr 2024 16:41:08 -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)
