Skip to content

Commit

Permalink
Adapt file to pydantic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKolibacz committed Oct 27, 2023
1 parent e1a0783 commit f62cf19
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions visualization/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Implements the settings for the oeffikator container"""
from pydantic import BaseSettings
from pydantic_settings import BaseSettings, SettingsConfigDict


# pylint: disable=R0903,R0801
Expand All @@ -11,8 +11,4 @@ class Settings(BaseSettings):
max_east: float = 13.55
max_south: float = 52.42
max_north: float = 52.59

class Config:
"""Defines the source for the settings"""

env_prefix = "OEFFI_"
model_config = SettingsConfigDict(env_prefix="OEFFI_")

0 comments on commit f62cf19

Please sign in to comment.