Compare commits
2 commits
releases/0
...
release
Author | SHA1 | Date | |
---|---|---|---|
|
5cbf13aae9 | ||
240ada35f7 |
3 changed files with 16 additions and 3 deletions
4
.github/workflows/create-release.yaml
vendored
4
.github/workflows/create-release.yaml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Create release on tag push
|
name: Create release on tag push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -12,7 +12,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Draft release
|
- name: Draft release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
|
|
|
@ -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)
|
# 0.2 (2022-07-02)
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
|
@ -49,6 +49,10 @@ class Commander(Positionable):
|
||||||
json = logsApi.Position.getSystem(self.name, self.apiKey)
|
json = logsApi.Position.getSystem(self.name, self.apiKey)
|
||||||
self.profileUrl = json
|
self.profileUrl = json
|
||||||
if 'dateLastActivity' in json:
|
if 'dateLastActivity' in json:
|
||||||
|
date = json['dateLastActivity']
|
||||||
|
if date is None:
|
||||||
|
return None
|
||||||
|
else:
|
||||||
return dateparser.parse(json['dateLastActivity'])
|
return dateparser.parse(json['dateLastActivity'])
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue