Skip to content

Commit

Permalink
Add constant for EONI import Scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoWill committed Dec 11, 2024
1 parent 656c96b commit 291fefa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions polling_stations/settings/constants/importers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import os
from django.db import models


if SERVER_ENVIRONMENT := os.environ.get("DC_ENVIRONMENT"):
S3_DATA_BUCKET = f"pollingstations.elections.{SERVER_ENVIRONMENT}"
else:
S3_DATA_BUCKET = os.environ.get(
"S3_DATA_BUCKET", "pollingstations.elections.development"
)


class EONIImportScheme(models.TextChoices):
NATIONAL = ("NATIONAL", "National (NI Assembly and Westminster Elections)")
LOCAL = ("LOCAL", "Local (Council Elections)")


EONI_IMPORT_SCHEME = EONIImportScheme.NATIONAL

0 comments on commit 291fefa

Please sign in to comment.