Skip to content

Commit

Permalink
remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
pennybelle committed Aug 31, 2024
1 parent e652631 commit df2f7ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/pbfetch/main_funcs/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def omit_comments(fetch_data, regex):

fetch_data = fetch_data.rstrip()

print(fetch_data)
# debug
# print(fetch_data)

# init stats dictionary
stats_dict = stats(fetch_data)
Expand Down
5 changes: 2 additions & 3 deletions src/pbfetch/main_funcs/horizontal_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def replace_keyword(template, keyword, stat):

for line in template:
line = "</rgb>" + line
# Replace the text with a loading spinner

# if no keyword add line to replace template and continue
if keyword not in line:
replaced_template.append(line)
continue
Expand All @@ -33,12 +34,10 @@ def replace_keyword(template, keyword, stat):
if stat == "ERROR":
is_error = True
stat = "<rgb(255,0,0)>ERROR</rgb>"
# stat_len = stat_len - 20

# Split the string on the word
split_line = line.split(keyword)

# if len(line) < console_width:
split_line[1] = split_line[1].ljust(stat_len)

# Measure the length of the second element in the split
Expand Down

0 comments on commit df2f7ff

Please sign in to comment.