Move project json files into a directory.

This commit is contained in:
Russell Bryant 2013-05-29 16:12:37 -04:00
parent 05d4e55b3b
commit ca663198e0
19 changed files with 5 additions and 5 deletions

View File

@ -4,14 +4,14 @@ projects=$1
all=0
if [ "$projects" = "" ] ; then
projects=*.json
projects=projects/*.json
all=1
fi
mkdir -p results
for project in ${projects} ; do
project_base=$(echo ${project} | cut -f1 -d'.')
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
(date -u && echo && ./openreviews.py -p ${project}) > results/${project_base}-openreviews.txt
for time in 30 90 180 ; do
(date -u && echo && ./reviewers.py -p ${project} -d ${time}) > results/${project_base}-reviewers-${time}.txt

View File

@ -27,7 +27,7 @@ import utils
optparser = optparse.OptionParser()
optparser.add_option('-p', '--project', default='nova.json',
optparser.add_option('-p', '--project', default='projects/nova.json',
help='JSON file describing the project to generate stats for')
optparser.add_option('-a', '--all', action='store_true',
help='Generate stats across all known projects (*.json)')

View File

@ -32,7 +32,7 @@ import utils
optparser = optparse.OptionParser()
optparser.add_option('-p', '--project', default='nova.json',
optparser.add_option('-p', '--project', default='projects/nova.json',
help='JSON file describing the project to generate stats for')
optparser.add_option('-a', '--all', action='store_true',
help='Generate stats across all known projects (*.json)')

View File

@ -28,7 +28,7 @@ CACHE_AGE = 3600 # Seconds
def get_projects_info(project=None, all_projects=False):
if all_projects:
files = glob.glob('./*.json')
files = glob.glob('projects/*.json')
else:
files = [project]