Skip to content

Commit

Permalink
Fix checking parameter value equality
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Apr 19, 2014
1 parent 224ffa0 commit fab6b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fa_bot.py
Expand Up @@ -115,7 +115,7 @@ def promote_fac(fac_name, rev_info, was_promoted, featured_type='FA'):
temp.add(action_prefix+'result', prom_text)
temp.add(action_prefix+'oldid', latest_rev)
if temp.has('currentstatus', ignore_empty=False):
if was_promoted or temp.get('currentstatus') != 'GA':
if was_promoted or temp.get('currentstatus').value != 'GA':
temp.get('currentstatus').value = current_status
else:
temp.add('currentstatus', current_status)
Expand Down

0 comments on commit fab6b43

Please sign in to comment.