diff --git a/discodos/model_collection.py b/discodos/model_collection.py index 373eb25..4109419 100644 --- a/discodos/model_collection.py +++ b/discodos/model_collection.py @@ -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): @@ -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):