asigalov61 commited on
Commit
2d2f60f
1 Parent(s): 7d7060a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -161,8 +161,9 @@ def Generate_POP_Section(input_comp_section,
161
 
162
  input_seq = [input_mode_time, input_mode_dur, input_mode_ptc]
163
  input_seq_toks = [input_mode_time+532, input_mode_dur+660, input_mode_ptc+788]
164
-
165
- input_seq = input_seq_toks[:input_seq.index(0)]
 
166
 
167
  seq += input_seq
168
 
 
161
 
162
  input_seq = [input_mode_time, input_mode_dur, input_mode_ptc]
163
  input_seq_toks = [input_mode_time+532, input_mode_dur+660, input_mode_ptc+788]
164
+
165
+ if 0 in input_seq:
166
+ input_seq = input_seq_toks[:input_seq.index(0)]
167
 
168
  seq += input_seq
169