Permalink
Browse files

Fix checking parameter value equality

  • Loading branch information...
1 parent 224ffa0 commit fab6b431efc7cfccaa0f9dccfc81c840f303389e @legoktm committed Apr 19, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 fa_bot.py
View
@@ -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)

0 comments on commit fab6b43

Please sign in to comment.