mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
edsm: Update should_send() docstring for extra param
This commit is contained in:
parent
5ceac5ded7
commit
505692052e
@ -638,7 +638,7 @@ def worker() -> None: # noqa: CCR001 C901 # Cant be broken up currently
|
|||||||
else:
|
else:
|
||||||
logger.debug('Empty queue message, setting closing = True')
|
logger.debug('Empty queue message, setting closing = True')
|
||||||
closing = True # Try to send any unsent events before we close
|
closing = True # Try to send any unsent events before we close
|
||||||
entry = {'event': 'ShutDown'} # Dummy to allow for `entry['event']` below
|
entry = {'event': 'ShutDown'} # Dummy to allow for `uentry['event']` belowt
|
||||||
|
|
||||||
retrying = 0
|
retrying = 0
|
||||||
while retrying < 3:
|
while retrying < 3:
|
||||||
@ -776,6 +776,7 @@ def should_send(entries: List[Mapping[str, Any]], event: str) -> bool: # noqa:
|
|||||||
Whether or not any of the given entries should be sent to EDSM.
|
Whether or not any of the given entries should be sent to EDSM.
|
||||||
|
|
||||||
:param entries: The entries to check
|
:param entries: The entries to check
|
||||||
|
:param event: The latest event being processed
|
||||||
:return: bool indicating whether or not to send said entries
|
:return: bool indicating whether or not to send said entries
|
||||||
"""
|
"""
|
||||||
# We MUST flush pending on logout, in case new login is a different Commander
|
# We MUST flush pending on logout, in case new login is a different Commander
|
||||||
|
Loading…
x
Reference in New Issue
Block a user