TODAM-tw / todam-ticket-system

The frontend with gradio and combined with the API endpoints for the ticket system.
Apache License 2.0
0 stars 0 forks source link

[Enhancement] Make `INDEX` of `start recording`, `end recording` more meaningful #39

Closed 1chooo closed 1 month ago

1chooo commented 1 month ago

Although the current naming is better than simply using 0 and -1 directly, the variable names can be further improved to better represent their purpose. Therefore, we should rename FIRST_INDEX and LAST_INDEX to START_RECORDING_INDEX and END_RECORDING_INDEX respectively.

https://github.com/TODAM-tw/todam-ticket-system/blob/a61faf04fc04b873eab5295ea989be5af731433d/app/utils/recording_contents.py#L27-L47

Related: #32