pebble-dev / pebble-dev/rebble-boot
UserAgent error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Hello
I've just switched to a Motorola One Macro.
And for some reason, the useragent string isn't parsed properly by the boot.rebble.io website.
(I simulated this on PC using my useragent string with the User-Agent Switcher extension).
Basically, because "macro" contains the word "mac" ... it's not detected properly as a mobile platform. I guess it's a bug in flask ?
my useragent string for testing purposes :
Mozilla/5.0 (Linux; Android 9; motorola one macro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.111 Mobile Safari/537.36
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on boot.rebble.io with the provided Motorola One Macro user-agent, or with the User-Agent Switcher extension. Find the user-agent parsing entry point and verify that the device is classified as a mobile platform rather than a Mac; done means the supplied string is handled correctly and the relevant behavior is covered by a test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100