Skip to content

Commit

Permalink
Updated Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
abodeuis committed Jul 16, 2024
1 parent d7bde08 commit daf9efb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
- Added connection and retrieve api for CDR interface
- Added support for downloading legends from the CDR
- Added unittests for cdrhook process_cog code
- Added pytest github action
- Added linting github action

### Changed
- Updated cdrhook server code
- Updated message interface for download queue "map_area" -> "map_data"


## [0.7.3] - 2024-05-13

### Added
Expand Down
14 changes: 7 additions & 7 deletions cdrhook/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,13 @@ def create_app():

# set up the config variables
app = Flask(__name__)
# config["name"] = os.getenv("SYSTEM_NAME")
# config["version"] = os.getenv("SYSTEM_VERSION")
# config["cdr_token"] = os.getenv("CDR_TOKEN")
# config["callback_url"] = os.getenv("CALLBACK_URL")
# config["callback_secret"] = os.getenv("CALLBACK_SECRET")
# config["callback_username"] = os.getenv("CALLBACK_USERNAME")
# config["callback_password"] = os.getenv("CALLBACK_PASSWORD")
config["name"] = os.getenv("SYSTEM_NAME")
config["version"] = os.getenv("SYSTEM_VERSION")
config["cdr_token"] = os.getenv("CDR_TOKEN")
config["callback_url"] = os.getenv("CALLBACK_URL")
config["callback_secret"] = os.getenv("CALLBACK_SECRET")
config["callback_username"] = os.getenv("CALLBACK_USERNAME")
config["callback_password"] = os.getenv("CALLBACK_PASSWORD")
config["rabbitmq_uri"] = os.getenv("RABBITMQ_URI")
config["prefix"] = os.getenv("PREFIX")
config["cdr_keep_event"] = strtobool(os.getenv("CDR_KEEP_EVENT", "no"))
Expand Down
2 changes: 1 addition & 1 deletion tests/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def init_test_log(name, level=logging.DEBUG, writemode="w"):
log_dir = os.path.join("tests/logs", os.path.dirname(name))
os.makedirs(log_dir, exist_ok=True)
log = logging.getLogger()
log = logging.getLogger(name)
handler = logging.FileHandler(os.path.join(log_dir, f"{os.path.basename(name)}.log"), mode=writemode)
handler.setFormatter(logging.Formatter("%(asctime)s %(levelname)s - %(message)s", datefmt="%d/%m/%Y %H:%M:%S"))
handler.setLevel(level)
Expand Down

0 comments on commit daf9efb

Please sign in to comment.