From 96ca355c50309507f3d43c4d264f9b44d3781840 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sun, 16 Sep 2018 22:26:07 +0200 Subject: [PATCH] Fixed naming error with civilian and girl. Also prints total found videos. --- src/core.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/core.py b/src/core.py index 3c4ae44..7cb286c 100755 --- a/src/core.py +++ b/src/core.py @@ -287,21 +287,25 @@ def main(): videos = scan_folder(path) scout = [] - civilan = [] + civilian = [] for video in videos: - girl = pickforgirlscouts(video) - if girl: - scout.append(girl) + sortingHat = pickforgirlscouts(video) + if sortingHat: + scout.append(video) else: - civilan.append(girl) + civilian.append(video) - click.echo('%s scouts%s collected / %s civilans%s' % ( + click.echo('%s scout%s collected / %s civilan%s / %s candidate%s' % ( click.style(str(len(scout)), bold=True, fg='green' if scout else None), 's' if len(scout) > 1 else '', - click.style(str(len(civilan)), bold=True, fg='red' if civilan else None), - 's' if len(civilan) > 1 else '', + click.style(str(len(civilian)), bold=True, fg='red' if civilian else None), + 's' if len(civilian) > 1 else '', + click.style(str(len(videos)), bold=True, fg='blue' if videos else None), + 's' if len(videos) > 1 else '' )) + for video in civilian: + print(video) if __name__ == '__main__': main()