Skip to content

Commit

Permalink
fixed mypy errors inside populate_db
Browse files Browse the repository at this point in the history
  • Loading branch information
to-sta committed Sep 22, 2024
1 parent 6ac1844 commit bab73c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/backend/management/commands/populate_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def add_arguments(self, parser: ArgumentParser) -> None:
parser.add_argument("--events-per-org", type=int, default=1)

def handle(self, *args: str, **options: Unpack[Options]) -> None:
num_users = options.get("users")
num_orgs_per_user = options.get("orgs_per_user")
num_groups_per_org = options.get("groups_per_org")
num_events_per_org = options.get("events_per_org")
num_users = options["users"]
num_orgs_per_user = options["orgs_per_user"]
num_groups_per_org = options["groups_per_org"]
num_events_per_org = options["events_per_org"]

# Clear all tables before creating new data.
UserModel.objects.exclude(username="admin").delete()
Expand All @@ -64,7 +64,7 @@ def handle(self, *args: str, **options: Unpack[Options]) -> None:
created_by=user,
)

OrganizationTextFactory(org_id=user_org, iso="en", primary=True)
OrganizationTextFactory(org_id=user_org, iso="wt", primary=True)

for g in range(num_groups_per_org):
user_org_group = GroupFactory(
Expand Down

0 comments on commit bab73c2

Please sign in to comment.