Skip to content

Commit

Permalink
added xml declaration to output xml
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Oct 6, 2022
1 parent ca2bbc5 commit a5ce316
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: ampledata
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: ampledata
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: https://www.buymeacoffee.com/ampledata
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ADSBCOT 5.1.0
-------------
Added XML Declaration header to output CoT XML.
4 changes: 3 additions & 1 deletion adsbxcot/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,6 @@ def adsbx_to_cot(
) -> Union[bytes, None]:
"""Wrapper that returns COT as an XML string."""
cot: Union[ET.Element, None] = adsbx_to_cot_xml(craft, config, known_craft)
return ET.tostring(cot) if cot else None
return (
b"\n".join([pytak.DEFAULT_XML_DECLARATION, ET.tostring(cot)]) if cot else None
)
Binary file modified docs/adsbxcot concept.graffle
Binary file not shown.
Binary file added docs/adsbxcot-conop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import setuptools

__title__ = "adsbxcot"
__version__ = "5.0.4"
__version__ = "5.1.0"
__author__ = "Greg Albrecht W2GMD <[email protected]>"
__copyright__ = "Copyright 2022 Greg Albrecht"
__license__ = "Apache License, Version 2.0"
Expand Down Expand Up @@ -60,7 +60,7 @@ def publish():
zip_safe=False,
include_package_data=True,
install_requires=[
"pytak >= 5.0.0",
"pytak >= 5.4.0",
"aircot >= 1.2.0",
"aiohttp",
],
Expand Down

0 comments on commit a5ce316

Please sign in to comment.