We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 658dd56 commit 81cf118Copy full SHA for 81cf118
1 file changed
hello_togglebot/utils.py
@@ -30,8 +30,8 @@ def render_frame(idx=0):
30
speed = devcycle_client.variable_value(SERVICE_USER, 'togglebot-speed', 'off')
31
32
spin_chars = "◟◜◝◞" if speed == 'slow' else "◜◠◝◞◡◟"
33
- spinner = '○' if speed == 'off' else spin_chars[idx]
34
- idx = (idx + 1) % len(spin_chars)
+ spinner = '○' if speed == 'off' else spin_chars[idx % len(spin_chars)]
+ idx += 1
35
36
face = '(- ‿ ○)' if wink else '(○ ‿ ○)'
37
0 commit comments