Skip to content

Commit

Permalink
Merge pull request #64 from DostEducation/420-add-language-id-in-regi…
Browse files Browse the repository at this point in the history
…stration

420/added default language in registration
  • Loading branch information
vivek-kumar-pandey authored Oct 20, 2023
2 parents 95f3b30 + d08fc09 commit 18b195e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/services/registration_service.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This file is treated as service layer
from api import helpers, models, db
from api import helpers, models, app, db
from datetime import datetime
from api import app
from utils.loggingutils import logger


Expand Down Expand Up @@ -49,6 +48,7 @@ def create_registration(self, data):
program_id=program_id,
status="pending",
partner_id=partner.partner_id,
language_id=app.config["DEFAULT_LANGUAGE_ID"],
state=system_phone_data.state,
has_dropped_missedcall=True,
created_on=data["log_created_on"]
Expand Down
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@
DEFAULT_PROGRAM_TIME_CATEGORY = "AFTERNOON"
RETRY_LOGS_BATCH_LIMIT = os.environ.get("RETRY_LOGS_BATCH_LIMIT", 1000)
TELCO_CODE_ANSWERED = 16
DEFAULT_LANGUAGE_ID = 1
MAX_RETRY_ATTEMPTS_FOR_LOGS = os.environ.get("MAX_RETRY_ATTEMPTS_FOR_LOGS", 3)

0 comments on commit 18b195e

Please sign in to comment.