1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

Fix broken logic in announce.py

This commit is contained in:
Sam Whited 2017-03-16 12:39:47 -05:00
parent 7ca36495db
commit c8aa105552

View File

@ -102,13 +102,13 @@ else:
# what kind of action are we taking? # what kind of action are we taking?
xepflag = "" xepflag = ""
if (version == "0.1"): if (version == "0.1" or version == "0.1.0"):
xepflag = "new" xepflag = "new"
elif ((version == "1.0") & (xeptype == "Standards Track")): elif ((version == "1.0" or version == "1.0.0") and xeptype == "Standards Track"):
xepflag = "draft" xepflag = "draft"
elif ((version == "1.0") & (xeptype != "Standards Track")): elif ((version == "1.0" or version == "1.0.0") and xeptype != "Standards Track"):
xepflag = "active" xepflag = "active"
elif (version == "2.0"): elif (version == "2.0" or version == "2.0.0"):
xepflag = "final" xepflag = "final"
elif (xepstatus == "Retracted"): elif (xepstatus == "Retracted"):
xepflag = "retract" xepflag = "retract"