From 5a28ec0b4916703c82346de780064896a9f47d3c Mon Sep 17 00:00:00 2001 From: Noah Swerhun Date: Fri, 10 Mar 2023 21:21:52 -0600 Subject: [PATCH] made simpler and removed unnecessary =1 --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index dc26094..83468f8 100644 --- a/main.py +++ b/main.py @@ -15,15 +15,15 @@ def print_bar(): case "right": print("%{r}", end="") # convert group to list so we can access subsequent items - group = list(running_modules_dict[alignment].items()) + group = list(running_modules_dict[alignment].values()) for index, module in enumerate(group): - print(module[1], end="") + print(module, end="") # IF module is not the last AND it has text - if index != (len(group) - 1) and len(module[1]) > 0: + if index != (len(group) - 1) and len(module) > 0: # THEN only print seperator if the module is eventually followed # by a module with text - for i in range(index + 1, len(group) - 1): - if len(group[i][1]) > 0: + for i in range(index + 1, len(group)): + if len(group[i]) > 0: print(seperator, end="") break;