Skip to content

Commit 7c5cfca

Browse files
committed
Fixed Bug when exporting Mixtapes, fixed bugs with near zero floats
1 parent 6a25ac9 commit 7c5cfca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mixtaper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import shutil
1111
import random
1212
import time
13+
from decimal import Decimal
1314

1415
class MixtapeApp:
1516
def __init__(self, root):
@@ -335,7 +336,8 @@ def load_library_thread(self):
335336
"path": filepath,
336337
"name": file,
337338
"duration": duration,
338-
"folder": root_dir # Store full path for reference
339+
"folder": root_dir, # Store full path for reference
340+
"is_silence": False
339341
}
340342
self.library.append(song_info)
341343
all_songs.append(song_info)
@@ -687,6 +689,9 @@ def update_usage(self):
687689
else:
688690
progress_bar["style"] = "Red.Horizontal.TProgressbar"
689691

692+
self.current_usage["A"] = round(self.current_usage["A"], 3)
693+
self.current_usage["B"] = round(self.current_usage["B"], 3)
694+
690695
formatted_time_a = self.format_time(self.current_usage["A"])
691696
formatted_time_b = self.format_time(self.current_usage["B"])
692697
side_a_max = self.format_time(self.tape_length)

0 commit comments

Comments
 (0)