Skip to content

Commit dc70efa

Browse files
удавлена константа EnvironmentEnum
1 parent 850a035 commit dc70efa

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

fastapi_django/constants.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
import os
2-
from enum import StrEnum
3-
4-
5-
class EnvironmentEnum(StrEnum):
6-
LOCAL = "LOCAL"
7-
DEV = "DEV"
8-
STAGE = "STAGE"
9-
PROD = "PROD"
10-
11-
@classmethod
12-
def get_environment(cls):
13-
return cls(os.environ.get("ENVIRONMENT", "LOCAL"))

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ check_untyped_defs = true
1010

1111
[tool.poetry]
1212
name = "fastapi-django"
13-
version = "0.18.0"
13+
version = "0.19.0"
1414
description = ""
1515
authors = ["albertalexandrov <albert-ugatu@list.ru>"]
1616
packages = [{include = "fastapi_django"}]

0 commit comments

Comments
 (0)