aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-11 17:02:48 +0200
committerGravatar ks123 <[email protected]>2020-03-11 17:02:48 +0200
commit906288ae35fdfb7025901f9f1dee1a9b0117924c (patch)
tree824b6b4efa3c1f65bd37dfef0cbbe58c245dbcdc
parent(Space Cog): Add `self.rovers` using to `.space mars` command check. (diff)
(Space Cog): Fix `DateConverter`'s docstring
-rw-r--r--bot/seasons/evergreen/space.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/space.py b/bot/seasons/evergreen/space.py
index df15d7a4..746849fb 100644
--- a/bot/seasons/evergreen/space.py
+++ b/bot/seasons/evergreen/space.py
@@ -23,10 +23,10 @@ APOD_DEFAULT_PARAMS = {
class DateConverter(Converter):
- """Parse `str` into `datetime` or `int` object."""
+ """Parse SOL or earth date (in format YYYY-MM-DD) into `int` or `datetime`. When invalid input, raise error."""
async def convert(self, ctx: Context, argument: str) -> Union[int, datetime]:
- """Parse `str` into `datetime` or `int`. When invalid value, raise error."""
+ """Parse date (SOL or earth) into `datetime` or `int`. When invalid value, raise error."""
if argument.isdigit():
return int(argument)
try: