diff --git a/main.py b/main.py index 4dd2933..4f94931 100644 --- a/main.py +++ b/main.py @@ -14,11 +14,14 @@ def print_bar(): print("%{c}", end="") case "right": print("%{r}", end="") - group = running_modules_dict[alignment] + group = list(running_modules_dict[alignment].items()) for index, module in enumerate(group): - print(group[module], end="") - if index != (len(group) - 1) and len(group[module]) > 0: - print(seperator, end="") + print(module[1], end="") + if index != (len(group) - 1) and len(module[1]) > 0: + for i in range(index + 1, len(group) - 1): + if len(group[i][1]) > 0: + print(seperator, end="") + break; print(flush=True)