Up until now priorities could not be 0 or -1, not 0 because we weren't
explicitly when doing if issue.priority and not -1 because it was
a reserved value that meant to say: neither a value nor None.
With this change, the default value is a random object which allows us
to set the value to anything we like including None (which means
resetting the priority).
Up until now priorities could not be 0 or -1, not 0 because we weren't
explicitly when doing
if issue.priorityand not-1because it wasa reserved value that meant to say: neither a value nor None.
With this change, the default value is a random object which allows us
to set the value to anything we like including
None(which meansresetting the priority).
Fixes https://pagure.io/pagure/issue/2482
Fixes https://pagure.io/pagure/issue/1888
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr