Keep using standard json library in the test scheduling history retrieval task

The orjson library doesn't support stream reading from a file, so here
the standard json library is preferable.
This commit is contained in:
Marco Castelluccio 2019-10-18 01:23:53 +01:00
Родитель 25e29d4fe0
Коммит 3324f91f00
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import argparse
import json
import os
import subprocess
import tarfile
@ -8,7 +9,6 @@ from datetime import datetime
from logging import INFO, basicConfig, getLogger
import dateutil.parser
import orjson
import requests
from dateutil.relativedelta import relativedelta
from tqdm import tqdm
@ -84,7 +84,7 @@ file = {{ driver = "file", path = "{cache_path}" }}
HISTORY_DATE_START = datetime.now() - relativedelta(months=TRAINING_MONTHS)
with open("push_data.json", "r") as f:
data = orjson.load(f)
data = json.load(f)
push_data = {}
for row in data[1:]: