Skip to content

Commit

Permalink
Fix some linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Dec 19, 2024
1 parent a62799a commit cdc19cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tom_targets/persistent_sharing_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@


class PersistentShareSerializer(serializers.ModelSerializer):
destination = serializers.ChoiceField(choices=get_sharing_destination_options(include_download=False), required=True)
destination = serializers.ChoiceField(
choices=get_sharing_destination_options(include_download=False), required=True
)
target = TargetFilteredPrimaryKeyRelatedField(queryset=Target.objects.all(), required=True)
share_existing_data = serializers.BooleanField(default=False, required=False, write_only=True)

Expand Down
10 changes: 5 additions & 5 deletions tom_targets/sharing.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def share_target_and_all_data(share_destination, target):
destination, ReducedDatum.objects.filter(target=target), topic=hermes_topic)
sharing = getattr(settings, "DATA_SHARING", {})
message = BuildHermesMessage(title=f"Setting up continuous sharing for {target.name} from "
f"{getattr(settings, 'TOM_NAME', 'TOM Toolkit')}.",
authors=sharing.get('hermes', {}).get('DEFAULT_AUTHORS', None),
message=None,
topic=hermes_topic
)
f"{getattr(settings, 'TOM_NAME', 'TOM Toolkit')}.",
authors=sharing.get('hermes', {}).get('DEFAULT_AUTHORS', None),
message=None,
topic=hermes_topic
)
response = publish_to_hermes(message, filtered_reduced_datums)
response.raise_for_status()
else:
Expand Down

0 comments on commit cdc19cd

Please sign in to comment.