From 3bdeb12fdca2b5d6b51d784a21f115396b025111 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 10 Oct 2021 16:16:46 -0500 Subject: [PATCH] Switch from Zstandard to bzip2 --- python/scripts/ingest_ptp_json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/scripts/ingest_ptp_json.py b/python/scripts/ingest_ptp_json.py index 5077113..3346c0c 100644 --- a/python/scripts/ingest_ptp_json.py +++ b/python/scripts/ingest_ptp_json.py @@ -1,11 +1,11 @@ import argparse +import bz2 import contextlib import json import pathlib import sys import psycopg2 -import zstd arg_parser = argparse.ArgumentParser() @@ -61,7 +61,7 @@ with contextlib.closing(psycopg2.connect("")) as conn, conn.cursor() as cursor: for p in paths: with p.open("rb") as f: - json_data = zstd.decompress(f.read()).decode("utf-8") + json_data = bz2.decompress(f.read()).decode("utf-8") doc = json.loads(json_data) group_count = len(doc["Movies"]) -- 2.30.2