mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Inara: Be paranoid in case of -ve credits balance
This commit is contained in:
parent
02dd800c57
commit
adb8055f08
@ -1363,7 +1363,7 @@ def cmdr_data(data: CAPIData, is_beta): # noqa: CCR001
|
|||||||
if config.get_int('inara_out') and not is_beta and not this.multicrew and credentials(this.cmdr):
|
if config.get_int('inara_out') and not is_beta and not this.multicrew and credentials(this.cmdr):
|
||||||
if (
|
if (
|
||||||
abs(this.last_credits - data['commander']['credits']) >=
|
abs(this.last_credits - data['commander']['credits']) >=
|
||||||
min(this.last_credits * CREDITS_DELTA_MIN_FRACTION, CREDITS_DELTA_MIN_ABSOLUTE)
|
min(abs(this.last_credits * CREDITS_DELTA_MIN_FRACTION), CREDITS_DELTA_MIN_ABSOLUTE)
|
||||||
):
|
):
|
||||||
this.filter_events(
|
this.filter_events(
|
||||||
Credentials(this.cmdr, this.FID, str(credentials(this.cmdr))),
|
Credentials(this.cmdr, this.FID, str(credentials(this.cmdr))),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user