Skip to content

Commit

Permalink
Docs Update ovcategory to short version to 24.5 (#27641)
Browse files Browse the repository at this point in the history
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
  • Loading branch information
akopytko authored Nov 20, 2024
1 parent 1c02b94 commit 529433d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,13 @@ def extract_hierarchy(link):
if segments and segments[-1].endswith('.html'):
segments = segments[:-1]

if segments and '.' in segments[0]:
year, *rest = segments[0].split('.')
if year.isdigit() and len(year) == 4:
segments[0] = year

hierarchy = []
for i in range(1, len(segments) + 1):
hierarchy.append('|'.join(segments[:i]))
return ';'.join(hierarchy)

return ';'.join(hierarchy)

0 comments on commit 529433d

Please sign in to comment.