Skip to content

Commit

Permalink
Format a comment in model_collection
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Nov 1, 2024
1 parent 9ec1b5a commit 67beb7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discodos/model_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ def get_tracks_by_bpm(self, bpm, pitch_range):
OR (chosen_bpm >= "{}" AND chosen_bpm <= "{}")
ORDER BY chosen_key, chosen_bpm'''.format(
min_bpm, max_bpm, min_bpm, max_bpm)
# THEN trim(track_ext.bpm, '.0')
# THEN trim(round(track.a_bpm, 0), '.0')
# THEN trim(track_ext.bpm, '.0')
# THEN trim(round(track.a_bpm, 0), '.0')
return self._select(sql_bpm, fetchone=False)

def get_tracks_by_key(self, key):
Expand Down Expand Up @@ -540,8 +540,8 @@ def get_tracks_by_key(self, key):
WHERE
chosen_key LIKE "%{}%"
ORDER BY chosen_key, chosen_bpm'''.format(key)
# THEN trim(round(track.a_bpm, 0), '.0')
# THEN round(track_ext.bpm, 0)
# THEN trim(round(track.a_bpm, 0), '.0')
# THEN round(track_ext.bpm, 0)
return self._select(sql_key, fetchone=False)

def get_tracks_by_key_and_bpm(self, key, bpm, pitch_range):
Expand Down

0 comments on commit 67beb7d

Please sign in to comment.