Skip to content

Commit

Permalink
Merge pull request #103 from LanceMaverick/fix-beard-db-issue
Browse files Browse the repository at this point in the history
Fix `BeardDBTable` for great good.
  • Loading branch information
LanceMaverick committed Feb 22, 2017
2 parents a08aafe + 18457da commit df33738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions skybeard/bearddbtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ class BeardDBTable(object):
"""
def __init__(self, beard, table_name, **kwargs):
self.beard_name = type(beard).__name__
self.table_name = "{}_{}_{}".format(
self.table_name = "{}_{}".format(
self.beard_name,
beard.chat_id,
table_name
)
self.kwargs = kwargs
Expand Down
2 changes: 1 addition & 1 deletion skybeard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def setup_beard(beard_module_name,
'install',
'-r',
# A little sanitising
re.sub("[^a-z./]", "", requirements_file)
re.sub("[^a-z0-9./]", "", requirements_file)
]

if pyconfig.get('auto_pip_upgrade'):
Expand Down

0 comments on commit df33738

Please sign in to comment.