edsm: Update should_send() docstring for extra param

This commit is contained in:
Athanasius committed 2021-08-11 14:05:40 +01:00
1 parent 5ceac5ded7
commit 505692052e
1 file changed
+2 -1
+2 -1
View File
@@ -638,7 +638,7 @@ def worker() -> None: # noqa: CCR001 C901 # Cant be broken up currently
else:
logger.debug('Empty queue message, setting closing = True')
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
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.
:param entries: The entries to check
:param event: The latest event being processed
:return: bool indicating whether or not to send said entries
"""
# We MUST flush pending on logout, in case new login is a different Commander