Skip to content

Commit

Permalink
Move default lifetime variable where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhowe committed Jul 26, 2021
1 parent ec4cd11 commit 37c3efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions footron_controller/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from .browser_runner import BrowserRunner
from .constants import PACKAGE_STATIC_PATH

_DEFAULT_LIFETIME = 60

docker_client = docker.from_env()


Expand Down
3 changes: 2 additions & 1 deletion footron_controller/experiences.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
)
from .constants import EXPERIENCES_PATH, JsonDict

_DEFAULT_LIFETIME = 60
_FIELD_TYPE = "type"


Expand All @@ -31,7 +32,7 @@ class BaseExperience(BaseModel, abc.ABC):
description: str
artist: Optional[str]
collection: Optional[str]
lifetime: Optional[int]
lifetime: int = _DEFAULT_LIFETIME
path: Path
_environment: BaseEnvironment = PrivateAttr()

Expand Down

0 comments on commit 37c3efd

Please sign in to comment.