René's URL Explorer Experiment


Title: Model year incorrectly identified for certain heavy vehicles · Issue #24 · h3/python-libvin · GitHub

Open Graph Title: Model year incorrectly identified for certain heavy vehicles · Issue #24 · h3/python-libvin

X Title: Model year incorrectly identified for certain heavy vehicles · Issue #24 · h3/python-libvin

Description: Issue The current implementation of Vin.year returns the incorrect year for some heavy trucks and vans: In [1]: from libvin import Vin In [2]: v = Vin('1FUJGLDR69LAC9984') In [3]: v.year Out[3]: 2039 In [4]: v.is_pre_2010 Out[4]: False T...

Open Graph Description: Issue The current implementation of Vin.year returns the incorrect year for some heavy trucks and vans: In [1]: from libvin import Vin In [2]: v = Vin('1FUJGLDR69LAC9984') In [3]: v.year Out[3]: 20...

X Description: Issue The current implementation of Vin.year returns the incorrect year for some heavy trucks and vans: In [1]: from libvin import Vin In [2]: v = Vin('1FUJGLDR69LAC9984') In [3]: v.year Ou...

Opengraph URL: https://github.com/h3/python-libvin/issues/24

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Model year incorrectly identified for certain heavy vehicles","articleBody":"# Issue\r\nThe current implementation of `Vin.year` returns the incorrect year for some heavy trucks and vans:\r\n\r\n```python\r\nIn [1]: from libvin import Vin\r\n\r\nIn [2]: v = Vin('1FUJGLDR69LAC9984')\r\n\r\nIn [3]: v.year\r\nOut[3]: 2039\r\n\r\nIn [4]: v.is_pre_2010\r\nOut[4]: False\r\n```\r\nThe correct model year for this VIN is 2009 [(source)](https://www.vindecoderz.com/EN/check-lookup/1FUJGLDR69LAC9984).\r\n\r\nFor vehicles with a gross vehicle weight rating (GVWR) over 10,000 lbs the 7th digit of the VIN does not indicate if the vehicles was manufactured before or after 2009 as it does for passenger vehicles.\r\n\r\n# Potential solutions\r\nOne potential solution(https://github.com/emesterhazy/python-libvin/commit/58de6905448b774de2127944b76198400b3f46e7) is to check `Vin.year` and overwrite the `is_pre_2010` condition if the model year is more than X years into the future. For the example above, the fix would check the model year when the `Vin` object is created, and overwrite the `is_pre_2010` property since 2039 is too far into the future. Then when `Vin.year` is accessed it will return the correct year (2009), and `Vin.is_pre_2010` will return `True`.\r\n\r\n```python\r\nclass Vin(object):\r\n    def __init__(self, vin):\r\n        self.vin = vin.upper()\r\n\r\n        # Overwrite is_pre_2010 attribute if it would result in a model year\r\n        # more than 2 years into the future. See notes in is_pre_2010\r\n        self._pre_2010_overwrite = False\r\n        if (not self.is_pre_2010 and\r\n                YEARS_CODES_PRE_2040[self.vin[9]] \u003e= datetime.now().year + 2):\r\n            self._pre_2010_overwrite = True\r\n\r\n...\r\n\r\n    @property\r\n        def is_pre_2010(self):\r\n\r\n            if self._pre_2010_overwrite:\r\n                return True\r\n            else:\r\n                return self.vin[6].isdigit()\r\n\r\n```\r\n\r\nThe downside to this is that the fix will also \"correct\" valid passenger car VINs for vehicles with model years more than 2 years into the future. However, I don't think this will be an issue in real world use.\r\n\r\nI have a pull request ready if you agree with this approach.","author":{"url":"https://github.com/emesterhazy","@type":"Person","name":"emesterhazy"},"datePublished":"2018-08-25T16:43:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/24/python-libvin/issues/24"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c772ef7d-5f3a-0e78-8039-e943b0d91848
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id894C:376B66:1B453:2382A:6A5EC960
html-safe-noncedb03556f604acc66e1aac6f921958b05415efd48693309e76f7f085a7f3e4fb8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTRDOjM3NkI2NjoxQjQ1MzoyMzgyQTo2QTVFQzk2MCIsInZpc2l0b3JfaWQiOiI3NjY1MzUyMTQ2NzIzMDAzODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac18ee15a6488a1ff9849deef44a795dae29a0aeef13de8a12cd2e3ab77f9c0d08
hovercard-subject-tagissue:354026429
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/h3/python-libvin/24/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09f32534d90bdbead0ac6de4fc86ed7fcc4caad7ba564413d27cb735c918ecea/h3/python-libvin/issues/24
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09f32534d90bdbead0ac6de4fc86ed7fcc4caad7ba564413d27cb735c918ecea/h3/python-libvin/issues/24
og:image:altIssue The current implementation of Vin.year returns the incorrect year for some heavy trucks and vans: In [1]: from libvin import Vin In [2]: v = Vin('1FUJGLDR69LAC9984') In [3]: v.year Out[3]: 20...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameemesterhazy
hostnamegithub.com
expected-hostnamegithub.com
None9bd00899c80f8b6ea4e7a96c99290af4722b0befdf9e021b19232cbd6f993660
turbo-cache-controlno-preview
go-importgithub.com/h3/python-libvin git https://github.com/h3/python-libvin.git
octolytics-dimension-user_id102919
octolytics-dimension-user_loginh3
octolytics-dimension-repository_id5062758
octolytics-dimension-repository_nwoh3/python-libvin
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5062758
octolytics-dimension-repository_network_root_nwoh3/python-libvin
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9996307881fdf9017d864a20b3dfe5aae4dddd3e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/h3/python-libvin/issues/24#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fh3%2Fpython-libvin%2Fissues%2F24
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fh3%2Fpython-libvin%2Fissues%2F24
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=h3%2Fpython-libvin
Reloadhttps://github.com/h3/python-libvin/issues/24
Reloadhttps://github.com/h3/python-libvin/issues/24
Reloadhttps://github.com/h3/python-libvin/issues/24
h3 https://github.com/h3
python-libvinhttps://github.com/h3/python-libvin
Notifications https://github.com/login?return_to=%2Fh3%2Fpython-libvin
Fork 35 https://github.com/login?return_to=%2Fh3%2Fpython-libvin
Star 55 https://github.com/login?return_to=%2Fh3%2Fpython-libvin
Code https://github.com/h3/python-libvin
Issues 2 https://github.com/h3/python-libvin/issues
Pull requests 1 https://github.com/h3/python-libvin/pulls
Actions https://github.com/h3/python-libvin/actions
Projects https://github.com/h3/python-libvin/projects
Wiki https://github.com/h3/python-libvin/wiki
Security and quality 0 https://github.com/h3/python-libvin/security
Insights https://github.com/h3/python-libvin/pulse
Code https://github.com/h3/python-libvin
Issues https://github.com/h3/python-libvin/issues
Pull requests https://github.com/h3/python-libvin/pulls
Actions https://github.com/h3/python-libvin/actions
Projects https://github.com/h3/python-libvin/projects
Wiki https://github.com/h3/python-libvin/wiki
Security and quality https://github.com/h3/python-libvin/security
Insights https://github.com/h3/python-libvin/pulse
Model year incorrectly identified for certain heavy vehicleshttps://github.com/h3/python-libvin/issues/24#top
https://github.com/emesterhazy
emesterhazyhttps://github.com/emesterhazy
on Aug 25, 2018https://github.com/h3/python-libvin/issues/24#issue-354026429
(source)https://www.vindecoderz.com/EN/check-lookup/1FUJGLDR69LAC9984
https://github.com/emesterhazy/python-libvin/commit/58de6905448b774de2127944b76198400b3f46e7https://github.com/emesterhazy/python-libvin/commit/58de6905448b774de2127944b76198400b3f46e7
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.