chore(notify): use CR to make stderr less noisy
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
661fd5d83b
commit
e17645a8f3
|
@ -95,8 +95,6 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
self.stderr.write()
|
|
||||||
|
|
||||||
all_messages = set(messages)
|
all_messages = set(messages)
|
||||||
sent_messages = set()
|
sent_messages = set()
|
||||||
error = None
|
error = None
|
||||||
|
@ -104,16 +102,16 @@ class Command(BaseCommand):
|
||||||
for message in send(all_messages):
|
for message in send(all_messages):
|
||||||
sent_messages.add(message)
|
sent_messages.add(message)
|
||||||
|
|
||||||
self.stderr.write()
|
|
||||||
self.stderr.write(
|
self.stderr.write(
|
||||||
self.style.SUCCESS(
|
self.style.SUCCESS(
|
||||||
f"\r{str(len(sent_messages)).rjust(len(str(len(all_messages))))} / {len(all_messages)}"
|
f"\r{str(len(sent_messages)).rjust(len(str(len(all_messages))))} / {len(all_messages)}"
|
||||||
)
|
),
|
||||||
|
ending="",
|
||||||
)
|
)
|
||||||
self.stderr.write()
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error = e
|
error = e
|
||||||
|
|
||||||
|
self.stderr.write()
|
||||||
self.stderr.write(
|
self.stderr.write(
|
||||||
self.style.WARNING(f"sent {len(sent_messages)} out of {len(all_messages)}")
|
self.style.WARNING(f"sent {len(sent_messages)} out of {len(all_messages)}")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue