mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
Merge pull request #1731 from EDCD/fix/1730/inara-legacy-warn-only-if-sending
Only warn about Inara/Live data only if configured to send on Legacy.
This commit is contained in:
commit
0ecc3309e4
@ -376,8 +376,11 @@ def journal_entry( # noqa: C901, CCR001
|
|||||||
if datetime.now(timezone.utc) >= datetime.fromisoformat("2022-11-27T09:00:00+00:00"):
|
if datetime.now(timezone.utc) >= datetime.fromisoformat("2022-11-27T09:00:00+00:00"):
|
||||||
# Update 14 ETA has passed, so perform the check
|
# Update 14 ETA has passed, so perform the check
|
||||||
if (
|
if (
|
||||||
|
(
|
||||||
this.legacy_galaxy_last_notified is None
|
this.legacy_galaxy_last_notified is None
|
||||||
or (datetime.now(timezone.utc) - this.legacy_galaxy_last_notified) > timedelta(seconds=300)
|
or (datetime.now(timezone.utc) - this.legacy_galaxy_last_notified) > timedelta(seconds=300)
|
||||||
|
)
|
||||||
|
and config.get_int('inara_out') and not is_beta and not this.multicrew and credentials(cmdr)
|
||||||
):
|
):
|
||||||
# LANG: The Inara API only accepts Live galaxy data, not Legacy galaxy data
|
# LANG: The Inara API only accepts Live galaxy data, not Legacy galaxy data
|
||||||
logger.info(_("Inara only accepts Live galaxy data"))
|
logger.info(_("Inara only accepts Live galaxy data"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user