diff --git a/bin/github.sh b/bin/github.sh index e856b5b..14fcc14 100755 --- a/bin/github.sh +++ b/bin/github.sh @@ -39,8 +39,7 @@ fi git checkout --quiet -B "$PAGES_BRANCH" "$GITHUB_BRANCH" --no-track # update bundled information for public consumption -# python3 ../bundle.py --out-dir ../course-data --format json --format xml --format csv -python3 ../bundle.py --out-dir ../course-data --format json --format xml +python3 ../bundle.py --out-dir ../course-data --format json --format xml --format csv python3 ../bundle.py --legacy --out-dir ../course-data/legacy --format json # remove the source files (quietly) diff --git a/bin/run.sh b/bin/run.sh index 52a225c..c4de305 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -30,8 +30,7 @@ fi git checkout -B gh-pages master --no-track # update bundled information for public consumption -# python3 ../bundle.py --out-dir ../course-data --format json --format xml --format csv -python3 ../bundle.py --out-dir ../course-data --format json --format xml +python3 ../bundle.py --out-dir ../course-data --format json --format xml --format csv python3 ../bundle.py --legacy --out-dir ../course-data/legacy --format json # remove the source files (quietly) diff --git a/lib/csvify.py b/lib/csvify.py index f91ce07..822285d 100644 --- a/lib/csvify.py +++ b/lib/csvify.py @@ -12,7 +12,7 @@ def csvify(data): item.pop('revisions') for key in item: if type(item[key]) is list: - item[key] = ';'.join(item[key]) + item[key] = ';'.join(str(x) if not isinstance(x, str) else x for x in item[key]) if type(item[key]) is str: item[key] = item[key].replace('\n', '\\n') with io.StringIO() as outfile: