Skip to content

Commit

Permalink
Merge pull request #553 from phospho-app/dev
Browse files Browse the repository at this point in the history
Remove type casting
  • Loading branch information
oulianov committed Jun 24, 2024
2 parents 5d6f7cc + 0a6e825 commit 68c14d9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions backend/app/api/platform/endpoints/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,6 @@ async def post_detect_clusters(
if query is None:
query = DetectClustersRequest()

# Convert to UNIX timestamp in seconds for JSON serialization
if query.filters.created_at_start is not None:
query.filters.created_at_start = round(
query.filters.created_at_start.timestamp()
)
if query.filters.created_at_end is not None:
query.filters.created_at_end = round(query.filters.created_at_end.timestamp())

total_nb_tasks = await get_total_nb_of_tasks(project_id)
if total_nb_tasks:
clustering_sample_size = min(total_nb_tasks, query.limit)
Expand Down

0 comments on commit 68c14d9

Please sign in to comment.