Skip to content

Commit

Permalink
Fixing search by ranking into a favorites scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Jacobo Tibaquira <[email protected]>
  • Loading branch information
jtibaquira committed Aug 5, 2015
1 parent 20a02c1 commit 66fc136
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ def getFavorites(**kwargs):
elif kwargs.has_key("name"):
script = kwargs["name"]
sql= "select id, name, ranking from favorites where name like '%"+script+"%'"
elif kwargs.has_key("ranking"):
ranking = kwargs["ranking"]
sql= "select id, name, ranking from favorites where ranking like '%"+ranking+"%'"
else:
sql="select id, name, ranking from favorites"
cursor.execute(sql)
Expand Down

0 comments on commit 66fc136

Please sign in to comment.