Skip to content

Commit

Permalink
try to fix preprint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Oct 1, 2024
1 parent f0181e4 commit d6ed9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/nodes/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ class Meta:
@staticmethod
def get_id(obj):
from addons.base.models import BaseAddonSettings
if issubclass(type(obj.provider_settings), BaseAddonSettings):
if not obj.provider_settings or issubclass(type(obj.provider_settings), BaseAddonSettings):
return f'{obj.node._id}:{obj.provider}'
else:
return obj.provider_settings.gv_data.resource_id
Expand Down

0 comments on commit d6ed9d1

Please sign in to comment.