Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #122 (prolific branch) #123

Merged
merged 2 commits into from
Apr 10, 2023
Merged

issue #122 (prolific branch) #123

merged 2 commits into from
Apr 10, 2023

Conversation

szorowi1
Copy link
Contributor

@szorowi1 szorowi1 commented Apr 9, 2023

Purpose

To close #122

Explanation

@danielbrianbennett, @YJ-Ren: The purpose of this PR is to address #122. Specifically, as of Werkzeug 2.0 / Flask 2.1, the old calls to request.user_agent have been deprecated such that querying a user's browser or platform returns None. As such, I am proposing NivTurk now simply return the entire user agent string (i.e., request.user_agent.string). When NivTurk users need to look up participants' device info, they can pass that string to external resources such as browser-info or ua-parser.

szorowi1 added 2 commits April 9, 2023 11:55
- return entire `user_agent` string
- update list of screened devices
Copy link
Contributor

@YJ-Ren YJ-Ren left a comment

Choose a reason for hiding this comment

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

Looks good, thank you! @szorowi1

@szorowi1 szorowi1 merged commit 44e4232 into prolific Apr 10, 2023
@szorowi1 szorowi1 deleted the issue-#122-prolific branch April 10, 2023 14:52
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.

user_agent does not return browser/platform info
2 participants