Skip to content

Commit

Permalink
配色変更
Browse files Browse the repository at this point in the history
  • Loading branch information
okaits committed Jun 30, 2023
1 parent 2056c33 commit c102ac6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def counts_comparing(label: str, count: int, count_before: Union[int, type(None)
elif count == count_before:
return f'{label}: {count:,}'
elif count > count_before:
return f'{label}: {count:,} (+{count - count_before:,})'
return f'{label}: {count:,}' + colors.cyan(f' (+{count - count_before:,})')
else:
return f'{label}: {count:,} ({count - count_before:,})'
return f'{label}: {count:,}' + colors.red(f' ({count - count_before:,})')

def main():
""" Main func """
Expand Down Expand Up @@ -134,7 +134,7 @@ def main():
print(counts_comparing('Likes ', data.counts.likes))
print(colors.cyan('== Tags =='))
for tag in data.tags:
print(f'Tag: {tag.name}', '(Locked)' if tag.locked else '')
print(f'Tag: {tag.name}', colors.yellow('[Locked]') if tag.locked else '')
if args.log:
logdata = vars(data)
logdata["datetime"] = datetime.datetime.now()
Expand Down Expand Up @@ -197,7 +197,7 @@ def main():
print(colors.cyan('== Tags =='))
for tag in record["tags"]:
if tag['locked']:
print(f'Tag: {tag["name"]} [Locked]')
print(f'Tag: {tag["name"]}', colors.yellow('[Locked]'))
else:
print(f'Tag: {tag["name"]}')

Expand Down

0 comments on commit c102ac6

Please sign in to comment.