mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-20 16:54:31 +03:00
companion: Correct Session.profile(query_time) default
This commit is contained in:
parent
26caf76cf4
commit
503658bf4e
@ -996,7 +996,7 @@ class Session(object):
|
|||||||
|
|
||||||
def profile(
|
def profile(
|
||||||
self,
|
self,
|
||||||
query_time: int = int(time.time()),
|
query_time: int = 0,
|
||||||
tk_response_event: Optional[str] = None, retrying: bool = False,
|
tk_response_event: Optional[str] = None, retrying: bool = False,
|
||||||
play_sound: bool = False, auto_update: bool = False
|
play_sound: bool = False, auto_update: bool = False
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -1009,6 +1009,9 @@ class Session(object):
|
|||||||
:param play_sound: Whether the app should play a sound on error.
|
:param play_sound: Whether the app should play a sound on error.
|
||||||
:param auto_update: Whether this request was triggered automatically.
|
:param auto_update: Whether this request was triggered automatically.
|
||||||
"""
|
"""
|
||||||
|
if query_time == 0:
|
||||||
|
query_time = int(time.time())
|
||||||
|
|
||||||
self.query(
|
self.query(
|
||||||
self.FRONTIER_CAPI_PATH_PROFILE, query_time=query_time,
|
self.FRONTIER_CAPI_PATH_PROFILE, query_time=query_time,
|
||||||
tk_response_event=tk_response_event, retrying=retrying,
|
tk_response_event=tk_response_event, retrying=retrying,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user