Skip to content

Commit

Permalink
refactor: respond to Tom's comments 1
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Aug 22, 2024
1 parent 1135c16 commit 3b8d09f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion tests/send_CAP_as_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

# create a message containing the CAP alert in
# the data field as base64 encoded bytes
data = base64.b64encode(open(filename, 'rb').read()).decode()
with open(filename, 'rb') as file:
data = base64.b64encode(file.read()).decode()

msg = {
'metadata_id': 'urn:wmo:md:int_wmo_test:cap',
'data': data,
Expand Down
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
###############################################################################

__version__ = '1.0b8-dev'
__version__ = '1.0b7'

import click

Expand Down
6 changes: 3 additions & 3 deletions wis2box-management/wis2box/data/cap_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
#
###############################################################################

from datetime import datetime
import logging

from pathlib import Path
from datetime import datetime
from typing import Union

from wis2box.data.base import BaseAbstractData
from capvalidator import validate_cap_message, get_dates

from wis2box.data.base import BaseAbstractData

LOGGER = logging.getLogger(__name__)


Expand Down

0 comments on commit 3b8d09f

Please sign in to comment.