From 67beb7d184f1e5448a285e44b1053c9aca057f8b Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Fri, 1 Nov 2024 23:15:24 +0100 Subject: [PATCH] Format a comment in model_collection --- discodos/model_collection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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):