kopia lustrzana https://github.com/bugout-dev/moonstream
Black formating.
rodzic
ab9622b2c3
commit
96e570039c
|
@ -170,7 +170,9 @@ def generate_data(
|
||||||
|
|
||||||
time_series = db_session.query(
|
time_series = db_session.query(
|
||||||
func.generate_series(
|
func.generate_series(
|
||||||
start, start + timescales_delta[timescale]["timedelta"], time_step,
|
start,
|
||||||
|
start + timescales_delta[timescale]["timedelta"],
|
||||||
|
time_step,
|
||||||
).label("timeseries_points")
|
).label("timeseries_points")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -692,7 +694,10 @@ def stats_generate_handler(args: argparse.Namespace):
|
||||||
key = subscription_by_id[subscription_id].resource_data[
|
key = subscription_by_id[subscription_id].resource_data[
|
||||||
"s3_path"
|
"s3_path"
|
||||||
]
|
]
|
||||||
abi = s3_client.get_object(Bucket=bucket, Key=key,)
|
abi = s3_client.get_object(
|
||||||
|
Bucket=bucket,
|
||||||
|
Key=key,
|
||||||
|
)
|
||||||
abi_json = json.loads(abi["Body"].read())
|
abi_json = json.loads(abi["Body"].read())
|
||||||
methods = generate_list_of_names(
|
methods = generate_list_of_names(
|
||||||
type="function",
|
type="function",
|
||||||
|
@ -1030,7 +1035,10 @@ def stats_generate_api_task(
|
||||||
|
|
||||||
bucket = subscription_by_id[subscription_id].resource_data["bucket"]
|
bucket = subscription_by_id[subscription_id].resource_data["bucket"]
|
||||||
key = subscription_by_id[subscription_id].resource_data["s3_path"]
|
key = subscription_by_id[subscription_id].resource_data["s3_path"]
|
||||||
abi = s3_client.get_object(Bucket=bucket, Key=key,)
|
abi = s3_client.get_object(
|
||||||
|
Bucket=bucket,
|
||||||
|
Key=key,
|
||||||
|
)
|
||||||
abi_json = json.loads(abi["Body"].read())
|
abi_json = json.loads(abi["Body"].read())
|
||||||
|
|
||||||
methods = generate_list_of_names(
|
methods = generate_list_of_names(
|
||||||
|
|
Ładowanie…
Reference in New Issue