Skip to content

Commit

Permalink
Add comment about file_name usage
Browse files Browse the repository at this point in the history
Signed-off-by: Donny Peeters <[email protected]>
  • Loading branch information
Donnype committed Sep 5, 2024
1 parent 56730ae commit a785b56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boefjes/boefjes/clients/bytes_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_normalizer_meta(self, normalizer_meta_id: uuid.UUID) -> NormalizerMeta:

@retry_with_login
def save_raw(self, boefje_meta_id: str, raw: str | bytes, mime_types: Set[str] = frozenset()) -> UUID:
file_name = "raw"
file_name = "raw" # The name provides a key for all ids returned, so this is arbitrary as we only upload 1 file

response = self._session.post(
"/bytes/raw",
Expand Down
2 changes: 1 addition & 1 deletion bytes/tests/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def save_raw(self, boefje_meta_id: UUID, raw: bytes, mime_types: list[str] | Non
if not mime_types:
mime_types = []

file_name = "raw"
file_name = "raw" # The name provides a key for all ids returned, so this is arbitrary as we only upload 1 file
response = self.client.post(
"/bytes/raw",
json={
Expand Down
2 changes: 1 addition & 1 deletion rocky/rocky/bytes_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _save_normalizer_meta(self, normalizer_meta: NormalizerMeta) -> None:
response.raise_for_status()

def _save_raw(self, boefje_meta_id: uuid.UUID, raw: bytes, mime_types: Set[str] = frozenset()) -> str:
file_name = "raw"
file_name = "raw" # The name provides a key for all ids returned, so this is arbitrary as we only upload 1 file

response = self.session.post(
"/bytes/raw",
Expand Down

0 comments on commit a785b56

Please sign in to comment.