Skip to content

Commit

Permalink
fix placeholder which used funcstrplaceholder
Browse files Browse the repository at this point in the history
  • Loading branch information
petrnymsa committed Jan 9, 2020
1 parent 4b81498 commit c827b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdog/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def __init__(self, lang='en-US', strict=False):
SchemeParser.LAST_NAME:
lambda token, args: self._placeholder_last_name(token, args),
SchemeParser.CITY:
lambda token, _: FuncStrPlaceholder(token, _, lambda __: self.faker.city),
lambda token, _: FuncStrPlaceholder(token, _, lambda __: self.faker.city()),
SchemeParser.STREET_ADDRESS:
lambda token, _: FuncStrPlaceholder(token, _, lambda __: self.faker.street_address),
lambda token, _: FuncStrPlaceholder(token, _, lambda __: self.faker.street_address()),
SchemeParser.AGE:
lambda token, _: FuncPlaceholder(token, _, lambda __: random.randint(1, 99)),
SchemeParser.NUMBER:
Expand Down

0 comments on commit c827b48

Please sign in to comment.