Skip to content

Commit cfd38e1

Browse files
committed
run pre commit
1 parent 6c785b5 commit cfd38e1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/transactions.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _preprocess_item(self, model: stac_types.Item, base_url) -> stac_types.Item:
207207
v = float(v)
208208
wave.update({k: v})
209209
return model
210-
210+
211211
def bulk_item_insert(self, items: Items, **kwargs) -> str:
212212
"""Bulk item insertion using es."""
213213
self._create_item_index()
@@ -228,10 +228,7 @@ def bulk_item_insert(self, items: Items, **kwargs) -> str:
228228

229229
def bulk_sync(processed_items):
230230
actions = [
231-
{
232-
"_index": "stac_items",
233-
"_source": item
234-
} for item in processed_items
231+
{"_index": "stac_items", "_source": item} for item in processed_items
235232
]
236233

237234
helpers.bulk(self.client, actions)

stac_fastapi/elasticsearch/tests/clients/test_elasticsearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import time
12
import uuid
23
from copy import deepcopy
34
from typing import Callable
45

5-
import time
66
import pytest
77
from stac_pydantic import Item
88
from tests.conftest import MockStarletteRequest

0 commit comments

Comments
 (0)