mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-29 19:57:14 +00:00
♻️(backend) replace hardcoded file extensions with Python enum
Convert hardcoded string file extensions into a well-defined Python enum. Improves type safety and centralizes extension definitions for better maintainability and consistency across the codebase. It was dirty manipulating literals for file extension validation …
This commit is contained in:
committed by
aleb_the_flash
parent
3a4f4e7016
commit
d74dd967af
@@ -0,0 +1,10 @@
|
||||
"""Enums related to recordings."""
|
||||
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class FileExtension(Enum):
|
||||
"""Enum for file extensions used in recordings."""
|
||||
|
||||
OGG = "ogg"
|
||||
MP4 = "mp4"
|
||||
Reference in New Issue
Block a user