1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

Merge pull request #844 from alterNERDtive/alterNERDtive-patch-1

PLUGINS.md: fix typo & example for `journal_entry`
This commit is contained in:
Athanasius 2021-01-13 13:14:34 +00:00 committed by GitHub
commit 966599d82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,7 +375,7 @@ def journal_entry(
if entry['event'] == 'FSDJump':
# We arrived at a new system!
if 'StarPos' in entry:
logger.info(f'Arrived at {entry["StarSystem"]} {entry["StarPos"')
logger.info(f'Arrived at {entry["StarSystem"]} {entry["StarPos"]}')
else:
logger.info(f'Arrived at {entry["StarSystem"]}')
@ -396,7 +396,7 @@ Content of `state` (updated to the current journal entry):
| Field | Type | Description |
| :------------- | :-------------------------: | :-------------------------------------------------------------------------------------------------------------- |
| `Captian` | `Optional[str]` | Name of the commander who's crew you're on, if any |
| `Captain` | `Optional[str]` | Name of the commander who's crew you're on, if any |
| `Cargo` | `dict` | Current cargo. Note that this will be totals, and any mission specific duplicates will be counted together |
| `CargoJSON` | `dict` | content of cargo.json as of last read. |
| `Credits` | `int` | Current credits balance |