Skip to content

Commit

Permalink
Only import hdx config if it is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Dec 21, 2023
1 parent 4129e75 commit 55b6750
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/validation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@

from src.config import (
ALLOW_BIND_ZIP_FILTER,
ALLOWED_HDX_TAGS,
ALLOWED_HDX_UPDATE_FREQUENCIES,
ENABLE_POLYGON_STATISTICS_ENDPOINTS,
ENABLE_TILES,
EXPORT_MAX_AREA_SQKM,
ENABLE_HDX_EXPORTS
)

if ENABLE_HDX_EXPORTS:
from src.config import ALLOWED_HDX_TAGS, ALLOWED_HDX_UPDATE_FREQUENCIES,


def to_camel(string: str) -> str:
split_string = string.split("_")
Expand Down

0 comments on commit 55b6750

Please sign in to comment.