Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
report on stuff... but at what cost? new qa
- Loading branch information
1 parent
154be5d
commit e726253
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python | ||
|
||
"""A quick and dirty script to log what episodes still need review.""" | ||
|
||
import os | ||
|
||
import yaml | ||
|
||
basedir = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
all_data = {'episodes': [], 'characters': []} | ||
|
||
for datatype in all_data.keys(): | ||
data_files = os.listdir(os.path.join(basedir, datatype)) | ||
for f in data_files: | ||
content = yaml.load( | ||
open(os.path.join(basedir, datatype, f))) | ||
all_data[datatype] = all_data[datatype] + content[datatype] | ||
|
||
all_data['episodes'].sort(key=lambda x: (x['season'], x['episode'])) | ||
all_data['characters'].sort(key=lambda x: (x['short_name'])) | ||
|
||
print('***EPISODE GOODNESS/BADNESS TO REVIEW***\n') | ||
for ep in all_data['episodes']: | ||
if isinstance(ep['good'], str): | ||
print(f"{ep['season']}-{ep['episode']} - {ep['title']}") | ||
|
||
print('\nEPISODES TO LOG CHARACTERS') | ||
for ep in all_data['episodes']: | ||
if ep['characters'] is None: | ||
print(f"{ep['season']}-{ep['episode']} - {ep['title']}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters