Skip to content

Commit f422657

Browse files
Yuri ZmytrakovYuri Zmytrakov
authored andcommitted
temp
1 parent 59eca82 commit f422657

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ async def get_search(
441441

442442
if datetime:
443443
base_args["datetime"] = format_datetime_range(date_str=datetime)
444+
print("base_args[datetime]", base_args["datetime"])
444445

445446
if intersects:
446447
base_args["intersects"] = orjson.loads(unquote_plus(intersects))

stac_fastapi/core/stac_fastapi/core/datetime_utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@ def normalize(dt):
2222
if not dt or dt == "..":
2323
return ".."
2424
dt_obj = rfc3339_str_to_datetime(dt)
25+
26+
print(f"DEBUG: Input: '{dt}', Parsed: {dt_obj}, Microseconds: {dt_obj.microsecond}")
27+
2528
dt_utc = dt_obj.astimezone(timezone.utc)
2629

27-
return dt_utc.isoformat(timespec="milliseconds").replace("+00:00", "Z")
30+
# return dt_utc.isoformat(timespec="milliseconds").replace("+00:00", "Z")
31+
result = dt_utc.isoformat(timespec="microseconds").replace("+00:00", "Z")
32+
print(f"DEBUG: Output: '{result}'")
33+
34+
return dt_utc.isoformat(timespec="microseconds").replace("+00:00", "Z")
2835

2936
if not isinstance(date_str, str):
3037
return "../.."

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def run() -> None:
158158
"stac_fastapi.elasticsearch.app:app",
159159
host=settings.app_host,
160160
port=settings.app_port,
161-
log_level="info",
161+
log_level="debug",
162162
reload=settings.reload,
163163
)
164164
except ImportError:

stac_fastapi/opensearch/stac_fastapi/opensearch/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def run() -> None:
159159
"stac_fastapi.opensearch.app:app",
160160
host=settings.app_host,
161161
port=settings.app_port,
162-
log_level="info",
162+
log_level="debug",
163163
reload=settings.reload,
164164
)
165165
except ImportError:

stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/aggregation/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ async def aggregate(
274274

275275
if datetime:
276276
base_args["datetime"] = format_datetime_range(datetime)
277+
print("base_args[datetime] 2: ", base_args["datetime"])
278+
277279

278280
if filter_expr:
279281
base_args["filter"] = self.get_filter(filter_expr, filter_lang)

0 commit comments

Comments
 (0)