aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuppie2026-09-08 12:11:51 -0600
committerstuppie2026-09-08 12:11:51 -0600
commit16dc3d0a9c653afbdf75007c99a94e95bc70f17f (patch)
treeb8e6a9a8e6843d5f5118bb74731ea6c5ac779f8c
parenta65c38241f9b27abac166afb050b1ec846e5561d (diff)
downloadgeneralresearch-16dc3d0a9c653afbdf75007c99a94e95bc70f17f.tar.gz
generalresearch-16dc3d0a9c653afbdf75007c99a94e95bc70f17f.zip
TypeError: strptime() takes no keyword arguments
-rw-r--r--generalresearch/models/thl/task_status.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/generalresearch/models/thl/task_status.py b/generalresearch/models/thl/task_status.py
index 8fbb76d..73c7477 100644
--- a/generalresearch/models/thl/task_status.py
+++ b/generalresearch/models/thl/task_status.py
@@ -227,9 +227,9 @@ class TaskStatusResponse(BaseModel):
def sanitize_kwargs(cls, v: dict[str, Any] | None) -> dict[str, Any] | None:
if v and "clicked_timestamp" in v:
try:
- clicked_timestamp = datetime.strptime( # noqa
- date_string=v["clicked_timestamp"],
- format="%Y-%m-%d %H:%M:%S.%f",
+ clicked_timestamp = datetime.strptime(
+ v["clicked_timestamp"],
+ "%Y-%m-%d %H:%M:%S.%f",
)
v["clicked_timestamp"] = (
clicked_timestamp.isoformat(timespec="microseconds") + "Z"