Skip to content
Discussion options

You must be logged in to vote

Hi, check this one! You need to parse URI (line 26) and access to the collection (line 41)

for op in commit.ops:
if op.action == 'update':
# not supported yet
continue
uri = AtUri.from_str(f'at://{commit.repo}/{op.path}')
if op.action == 'create':
if not op.cid:
continue
create_info = {'uri': str(uri), 'cid': str(op.cid), 'author': commit.repo}
record_raw_data = car.blocks.get(op.cid)
if not record_raw_data:
continue
record = models.get_or_create(record_raw_data, strict=False)
record_type = _INTERESTED_RECORDS.get(uri.c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jetpacktuxedo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #421 on November 04, 2024 11:14.