Compare commits

...

2 commits

Author SHA1 Message Date
dependabot[bot]
5cbf13aae9
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-31 19:00:39 +00:00
240ada35f7
fixed exception when looking up a commander with hidden activity 2022-09-05 21:36:15 +02:00
3 changed files with 16 additions and 3 deletions

View file

@ -1,4 +1,4 @@
name: Create release on tag push
name: Create release on tag push
on:
push:
@ -12,7 +12,7 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Draft release
uses: ncipollo/release-action@v1

View file

@ -1,3 +1,12 @@
# devel
## Fixed
* Looking up a CMDR with public profile, but hidden activity (= no date of last
activity) will no longer throw an exception.
-----
# 0.2 (2022-07-02)
## Added

View file

@ -49,6 +49,10 @@ class Commander(Positionable):
json = logsApi.Position.getSystem(self.name, self.apiKey)
self.profileUrl = json
if 'dateLastActivity' in json:
date = json['dateLastActivity']
if date is None:
return None
else:
return dateparser.parse(json['dateLastActivity'])
else:
return None