mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
reduce shortId length to 14
This commit is contained in:
parent
ecbabacc78
commit
a947310d30
1 changed files with 3 additions and 0 deletions
|
|
@ -379,6 +379,9 @@ async def main():
|
|||
if 'highlights' in source:
|
||||
for highlight in source['highlights']:
|
||||
highlight_id = get_uuid(highlight['id'])
|
||||
short_id = highlight.get('shortId', None)
|
||||
if len(short_id) > 14:
|
||||
short_id = short_id[:14]
|
||||
highlight_position_percent = highlight.get('highlightPositionPercent', 0)
|
||||
highlight_position_anchor_index = highlight.get('highlightPositionAnchorIndex', 0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue