explorationtools.py: fixed finding cmdr with hidden activity time
This commit is contained in:
parent
ebfa86e163
commit
bf592168c1
2 changed files with 6 additions and 3 deletions
|
@ -32,6 +32,9 @@ def getCommanderProfileUrl(name, apikey):
|
|||
|
||||
def getCommanderSystem(name, apikey):
|
||||
cmdr = Commander(name, apikey)
|
||||
if cmdr.lastActivity is None:
|
||||
return "{}".format(cmdr.currentSystem)
|
||||
else:
|
||||
return "{} (last seen {})".format(cmdr.currentSystem,
|
||||
when(cmdr.lastActivity))
|
||||
def when(date):
|
||||
|
|
2
pyEDSM
2
pyEDSM
|
@ -1 +1 @@
|
|||
Subproject commit 36a660f240c7e57cf524fe9640d13e56c7e42e79
|
||||
Subproject commit be921a4f83a6b36155bca9814d9647ecae341f1d
|
Loading…
Reference in a new issue