chompionsawelo commited on
Commit
e9417bc
·
1 Parent(s): 795983d

minor fixes

Browse files
Files changed (1) hide show
  1. adjust.py +10 -0
adjust.py CHANGED
@@ -17,8 +17,13 @@ sample_groups, _ = load_groups_json()
17
 
18
 
19
  def get_current():
 
 
 
20
  name = list(speaker_to_name.values())[current_pos]
21
  sample = list(speaker_to_sample.values())[current_pos]
 
 
22
  return [name, sample]
23
 
24
 
@@ -63,6 +68,10 @@ def get_speakers():
63
 
64
 
65
  def change_name(to_name):
 
 
 
 
66
  current_speaker = sample_groups[current_pos]
67
  speaker_to_name[current_speaker] = to_name
68
  print(str(get_current()))
@@ -70,6 +79,7 @@ def change_name(to_name):
70
 
71
  def get_speakers_next(to_name):
72
  change_name(to_name)
 
73
  global current_pos
74
  if (current_pos < len(sample_groups) - 1):
75
  current_pos += 1
 
17
 
18
 
19
  def get_current():
20
+ global speaker_to_name
21
+ global speaker_to_sample
22
+
23
  name = list(speaker_to_name.values())[current_pos]
24
  sample = list(speaker_to_sample.values())[current_pos]
25
+ print(f"CURRENT: {name} {sample}")
26
+
27
  return [name, sample]
28
 
29
 
 
68
 
69
 
70
  def change_name(to_name):
71
+ global sample_groups
72
+ global speaker_to_name
73
+ global current_pos
74
+
75
  current_speaker = sample_groups[current_pos]
76
  speaker_to_name[current_speaker] = to_name
77
  print(str(get_current()))
 
79
 
80
  def get_speakers_next(to_name):
81
  change_name(to_name)
82
+ global sample_groups
83
  global current_pos
84
  if (current_pos < len(sample_groups) - 1):
85
  current_pos += 1