Skip to content

Commit

Permalink
dedupe
Browse files Browse the repository at this point in the history
  • Loading branch information
Krrupa committed Jun 12, 2024
1 parent 80a6d95 commit d3fb6a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/auth_group_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

logger = get_logger()


COUNTER_FOR_JNV_ID_GENERATION = 1000
class EnableStudents:
def __init__(self, data):
for param in [
Expand Down Expand Up @@ -37,7 +37,7 @@ def __init__(self, data):
self.student_id = self.check_if_student_exists()

if self.student_id == "":
counter = int(settings.JNV_COUNTER_FOR_ID_GENERATION)
counter = COUNTER_FOR_JNV_ID_GENERATION

while counter > 0:
id = (
Expand Down
1 change: 0 additions & 1 deletion app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class Settings(BaseModel):
# DB service base URL
db_url: str = os.environ.get("DB_SERVICE_URL")
TOKEN: str = os.environ.get("DB_SERVICE_TOKEN")
JNV_COUNTER_FOR_ID_GENERATION: int = os.environ.get("JNV_COUNTER_FOR_ID_GENERATION")


# callback to get the configuration
Expand Down

0 comments on commit d3fb6a1

Please sign in to comment.