Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor: Move get_recording_datetime() and calculate_detected_at() to utils/ module #48

@sorochak

Description

@sorochak

The get_recording_datetime() and calculate_detected_at() helpers in audio_analyzer.py are responsible for parsing and computing timestamps from filenames. These are general-purpose utilities and should be moved to a shared utils/ module to improve separation of concerns, reuse, and testability.

Tasks

  • Create backend/utils/file_parsing.py
  • Move get_recording_datetime() to file_parsing.py
  • Move calculate_detected_at() to file_parsing.py
  • Update imports in audio_analyzer.py (and any other affected files)
  • Confirm all functionality and tests still work

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions