tools: fix generation of emails for un-deferred XEPs

This commit is contained in:
Jonas Wielicki 2017-09-15 18:22:31 +02:00
parent fff5868bc4
commit 5ac81fe116
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ def diff_infos(old, new):
return Action.PROTO
elif old["status"] is None:
return Action.NEW
elif (old["status"] == Status.DEFERRED and
new["status"] == Status.EXPERIMENTAL):
return Action.UPDATE
return Action.fromstatus(new["status"])