From: Jakob Cornell Date: Sun, 10 Oct 2021 21:16:46 +0000 (-0500) Subject: Switch from Zstandard to bzip2 X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=3bdeb12fdca2b5d6b51d784a21f115396b025111;p=eros.git Switch from Zstandard to bzip2 --- 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"])