Change report format slightly and add options
This commit is contained in:
parent
11dd849b5c
commit
e6dc6b06cb
1 changed files with 15 additions and 15 deletions
|
@ -5,6 +5,7 @@ from numberdealers import parse_numberdealers, times, report_errors, numbers_per
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
channel = sys.argv[1]
|
||||||
numbers, errors = parse_numberdealers.parse(sys.stdin)
|
numbers, errors = parse_numberdealers.parse(sys.stdin)
|
||||||
|
|
||||||
if numbers == [] and errors == []:
|
if numbers == [] and errors == []:
|
||||||
|
@ -14,21 +15,20 @@ def main():
|
||||||
print("No valid number messages!")
|
print("No valid number messages!")
|
||||||
return
|
return
|
||||||
|
|
||||||
print(f"Checked from {numbers[0].recognized_number} up to {numbers[-1].recognized_number}")
|
print(f"##### Checked ~{channel} from {numbers[0].recognized_number} up to {numbers[-1].recognized_number}")
|
||||||
print()
|
if "--no-errors" not in sys.argv[2:]:
|
||||||
report_errors.report_errors(errors)
|
print()
|
||||||
print()
|
report_errors.report_errors(errors)
|
||||||
print("---")
|
if "--no-times" not in sys.argv[2:]:
|
||||||
print()
|
print()
|
||||||
print("```")
|
print("```")
|
||||||
times.report_times(numbers)
|
times.report_times(numbers)
|
||||||
print("```")
|
print("```")
|
||||||
print()
|
if "--no-users" not in sys.argv[2:]:
|
||||||
print("---")
|
print()
|
||||||
print()
|
print("```")
|
||||||
print("```")
|
numbers_per_user.report_users(numbers)
|
||||||
numbers_per_user.report_users(numbers)
|
print("```")
|
||||||
print("```")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue