Skip to content

Always assign locale in detect_locale()#1163

Merged
rdmark merged 3 commits intodevelopfrom
rdmark-assign-locale
May 16, 2023
Merged

Always assign locale in detect_locale()#1163
rdmark merged 3 commits intodevelopfrom
rdmark-assign-locale

Conversation

@rdmark
Copy link
Copy Markdown
Member

@rdmark rdmark commented May 2, 2023

Turns out there are scenarios when session["language"] is set but not assigned to the respective piscsi_cmd and file_cmd object members.

This change always executes said assignment in detect_locale().

@rdmark rdmark requested review from akuker and erichelgeson as code owners May 2, 2023 02:49
@rdmark rdmark requested a review from nucleogenic May 2, 2023 02:56
@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented May 2, 2023

I don't understand why the CI job is failing. Tried running with debug logging but it did not give any insights that I could spot.

@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented May 2, 2023

I ran the web ui integration tests locally and they passed

@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented May 2, 2023

To capture a Discord discussion: It was failing because Flask 2.3.x removed support for Python 3.7. Bumping the container to Bullseye gets us Python 3.9.

@rdmark rdmark merged commit b28da70 into develop May 16, 2023
@rdmark rdmark deleted the rdmark-assign-locale branch May 16, 2023 19:19
rdmark added a commit that referenced this pull request Sep 24, 2023
* Always assign locale in detect_locale()

* Bump version of Debian used in CI builds from from buster to bullseye

* Update code comment

---------

Co-authored-by: nucleogenic <nr@nucleogenic.com>
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.

3 participants