Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Typofix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Mar 20, 2015
1 parent 99d790a commit 7477563
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fmn/lib/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,13 @@ def create_from_code_path(cls, session, valid_paths, code_path,
# This will raise an exception if invalid
Rule.validate_code_path(valid_paths, code_path, **kw)

filt = cls(code_path=code_path, negated=negated)
filt.arguments = kw
rule = cls(code_path=code_path, negated=negated)
rule.arguments = kw

session.add(filt)
session.add(rule)
session.flush()
session.commit()
return filt
return rule

def title(self, valid_paths):
root, name = self.code_path.split(':', 1)
Expand Down

0 comments on commit 7477563

Please sign in to comment.