Return activities for existing objs in resolve_remote_id
This commit is contained in:
parent
28dc67bf5c
commit
d8c83fa31c
2 changed files with 3 additions and 3 deletions
|
@ -255,7 +255,7 @@ def resolve_remote_id(
|
|||
if model: # a bonus check we can do if we already know the model
|
||||
result = model.find_existing_by_remote_id(remote_id)
|
||||
if result and not refresh:
|
||||
return result
|
||||
return result if not get_activity else result.to_activity_dataclass()
|
||||
|
||||
# load the data and create the object
|
||||
try:
|
||||
|
@ -271,7 +271,7 @@ def resolve_remote_id(
|
|||
# check for existing items with shared unique identifiers
|
||||
result = model.find_existing(data)
|
||||
if result and not refresh:
|
||||
return result
|
||||
return result if not get_activity else result.to_activity_dataclass()
|
||||
|
||||
item = model.activity_serializer(**data)
|
||||
if get_activity:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue