Skip to content

Conversation

@dess890
Copy link
Contributor

@dess890 dess890 commented Nov 19, 2025

Fixes issue where &play option does not update in URL param

@dess890 dess890 requested a review from aucahuasi November 19, 2025 20:11
@dess890 dess890 self-assigned this Nov 19, 2025
@dess890 dess890 marked this pull request as ready for review November 25, 2025 21:06
if play_ms != 0:
play_value = play_ms
elif 'play' in g._url_params:
play_value = g._url_params['play']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we parse the play value or make sure it has a valid format?

Copy link
Contributor

@aucahuasi aucahuasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@aucahuasi aucahuasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, can you add some tests as well?


if play_ms != 0:
play_value = play_ms
elif 'play' in g._url_params:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong - if 0 is set, we should respect it

I can imagine changing the type signature to : Optional[int] = 0, and having None mean "honor url param if already set, otherwise default to 0", but that feels unnecessarily complicated

@lmeyerov
Copy link
Contributor

lmeyerov commented Nov 28, 2025

See comment for cleaner way to support cascading - do when None

Also I thought we have 3-4 ring layout variants ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants