Skip to content

Commit

Permalink
Glob import fix (#287)
Browse files Browse the repository at this point in the history
* fix: glob imports

* chore: linting

* fix: better glob indexing

* chore: seeding config
  • Loading branch information
EwoutV committed Apr 10, 2024
1 parent e10675e commit 9183ee3
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions backend/api/management/commands/seed_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,25 +491,25 @@ def seed_data(self, amount, provider_function, update_function):
def handle(self, *args, **options):
start_time = time.time()
# TODO maybey take as option
# amount_of_students = 50_000
# amount_of_assistants = 300
# amount_of_teachers = 500
# amount_of_courses = 1_000
# amount_of_projects = 3_000
# amount_of_groups = 9_000
# amount_of_submissions = 50_000
# amount_of_file_extensions = 20
# amount_of_structure_checks = 12_000

amount_of_students = 0
amount_of_assistants = 0
amount_of_teachers = 0
amount_of_courses = 0
amount_of_projects = 30_000
amount_of_groups = 0
amount_of_submissions = 0
amount_of_file_extensions = 0
amount_of_structure_checks = 0
amount_of_students = 50_000
amount_of_assistants = 300
amount_of_teachers = 500
amount_of_courses = 1_000
amount_of_projects = 1_500
amount_of_groups = 5_000
amount_of_submissions = 50_000
amount_of_file_extensions = 20
amount_of_structure_checks = 12_000

# amount_of_students = 0
# amount_of_assistants = 0
# amount_of_teachers = 0
# amount_of_courses = 0
# amount_of_projects = 30_000
# amount_of_groups = 0
# amount_of_submissions = 0
# amount_of_file_extensions = 0
# amount_of_structure_checks = 0

self.seed_data(amount_of_students, fake.provide_student, update_Student_providers)
self.stdout.write(self.style.SUCCESS('Successfully seeded students!'))
Expand Down

0 comments on commit 9183ee3

Please sign in to comment.