зеркало из https://github.com/mozilla/bugbug.git
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:
Родитель
25e29d4fe0
Коммит
3324f91f00
|
@ -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:]:
|
||||
|
|
Загрузка…
Ссылка в новой задаче