Skip to content

misc fixes#76

Merged
SharpBit merged 3 commits into
SharpBit:developmentfrom
robinmahieu:development
Oct 6, 2020
Merged

misc fixes#76
SharpBit merged 3 commits into
SharpBit:developmentfrom
robinmahieu:development

Conversation

@robinmahieu

Copy link
Copy Markdown
Contributor

Changes Description

Using await player.get_club() would result in a TypeError when the user isn't part of any club, as you can't await None. This PR fixes that by returning an awaitable function - if the client is asyncronously used - that resolves to None.

The brawlstats.utils.get_datetime function seemed to use the wrong string format - probably because it's Star List API legacy code. There would also be a SyntaxError regarding the type annotation, which I've also fixed.

Type of PR

  • Bug Fix
  • Feature Addition

Checklist

  • Docstrings added (NumpyDoc)
  • If necessary, add to the documentation files
  • Tox checked

Comment thread brawlstats/utils.py Outdated
@SharpBit
SharpBit merged commit dc7f082 into SharpBit:development Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants