Skip to content

Commit

Permalink
timedelta fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Sep 28, 2024
1 parent af84193 commit 6649c0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keel_telegram_bot/client/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def from_value(value: str):

@property
def value(self):
return self.__str__()
return f"{timedelta_to_golang_duration(self.interval)}"

def __str__(self):
return f"@every {timedelta_to_golang_duration(self.interval)}"
return f"@every {self.value}"


class Action(enum.Enum):
Expand Down Expand Up @@ -133,6 +133,7 @@ class NeverPolicy(Policy):
def __str__(self):
return "never"


class SemverPolicyType(enum.Enum):
"""
Enum for semver policy types
Expand Down

0 comments on commit 6649c0b

Please sign in to comment.