Skip to content

Commit

Permalink
fixed query for weights+cardio
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiltron committed Feb 12, 2011
1 parent 0271958 commit cad18f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fitgen.py
Expand Up @@ -90,14 +90,14 @@ def build_query(muscles=[], types=[], equip=[], limit=1):
if i != 0:
query += " OR "
query += "muscles='" + muscles[i] + "'"
query += ')'
query += " OR muscles='other')"
if len(types) > 0:
query += " AND ("
for i in range(0, len(types)):
if i != 0:
query += " OR "
query += "workout_type='" + types[i] + "'"
query += ')'
query += ")"
if len(equip) > 0:
query += " AND ("
for i in range(0, len(equip)):
Expand Down

0 comments on commit cad18f2

Please sign in to comment.