Skip to content

Commit

Permalink
Map over simple bugs fixed directly on PROD
Browse files Browse the repository at this point in the history
  • Loading branch information
jnmclarty committed Aug 4, 2015
1 parent a507c5c commit 6aff5b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trump/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def delete(self, symbol):
----------
symbol : str or Symbol
"""
if isinstance(symbol, str):
if isinstance(symbol, (str, unicode)):
sym = self.get(symbol)
elif isinstance(symbol, Symbol):
sym = symbol
Expand Down Expand Up @@ -344,7 +344,7 @@ def search_meta(self, attr, value=None, stronly=False):

crits = []

if isinstance(value, None):
if value is None:
crits.append(SymbolMeta.attr == attr)
else:
if isinstance(value, str):
Expand Down Expand Up @@ -485,7 +485,7 @@ def search_tag(self, tag, symbols=True, feeds=False):
return list(set(syms))
return syms

def search_meta(self, **avargs):
def search_meta_specific(self, **avargs):
"""Search list of Symbol objects by by querying specific
meta attributes and their respective values.
Expand Down

0 comments on commit 6aff5b0

Please sign in to comment.