Skip to content

Commit

Permalink
Revert "Convert total stats time from seconds to minutes" (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored Jan 26, 2024
1 parent cc0b2dd commit ddde659
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
7 changes: 1 addition & 6 deletions deebot_client/commands/json/stats.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Stats commands."""
from math import floor
from typing import Any

from deebot_client.event_bus import EventBus
Expand Down Expand Up @@ -44,10 +43,6 @@ def _handle_body_data_dict(
:return: A message response
"""
stats_event = TotalStatsEvent(
data["area"],
floor(data["time"] / 60), # Convert seconds to minutes
data["count"],
)
stats_event = TotalStatsEvent(data["area"], data["time"], data["count"])
event_bus.notify(stats_event)
return HandlingResult.success()
15 changes: 0 additions & 15 deletions tests/commands/json/test_stats.py

This file was deleted.

0 comments on commit ddde659

Please sign in to comment.