Skip to content

Commit 3af9321

Browse files
committed
Fix seeds
1 parent 3bfc4f8 commit 3af9321

File tree

1 file changed

+39
-39
lines changed
  • services/app/apps/codebattle/priv/repo

1 file changed

+39
-39
lines changed

services/app/apps/codebattle/priv/repo/seeds.exs

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -489,42 +489,42 @@ end
489489

490490
Repo.delete_all(UserEvent)
491491

492-
UserEvent.create(%{
493-
user_id: 2185,
494-
event_id: 1,
495-
stages: [
496-
%{
497-
slug: "qualification",
498-
status: :completed,
499-
place_in_total_rank: nil,
500-
place_in_category_rank: nil,
501-
score: nil,
502-
wins_count: nil,
503-
games_count: nil,
504-
time_spent_in_seconds: nil
505-
},
506-
%{
507-
slug: "semifinal_entrance",
508-
entrance_result: :passed
509-
},
510-
%{
511-
slug: "semifinal",
512-
tournament_type: :global,
513-
status: :pending
514-
}
515-
# %{
516-
# slug: "final_entrance",
517-
# entrance_result: :not_passed
518-
# },
519-
# %{
520-
# slug: "final",
521-
# status: :pending,
522-
# place_in_total_rank: Enum.random(1..20),
523-
# place_in_category_rank: Enum.random(1..10),
524-
# score: Enum.random(20..100),
525-
# wins_count: Enum.random(0..8),
526-
# games_count: Enum.random(1..10),
527-
# time_spent_in_seconds: Enum.random(100..5000)
528-
# }
529-
]
530-
})
492+
# UserEvent.create(%{
493+
# user_id: 2185,
494+
# event_id: 1,
495+
# stages: [
496+
# %{
497+
# slug: "qualification",
498+
# status: :completed,
499+
# place_in_total_rank: nil,
500+
# place_in_category_rank: nil,
501+
# score: nil,
502+
# wins_count: nil,
503+
# games_count: nil,
504+
# time_spent_in_seconds: nil
505+
# },
506+
# %{
507+
# slug: "semifinal_entrance",
508+
# entrance_result: :passed
509+
# },
510+
# %{
511+
# slug: "semifinal",
512+
# tournament_type: :global,
513+
# status: :pending
514+
# }
515+
# %{
516+
# slug: "final_entrance",
517+
# entrance_result: :not_passed
518+
# },
519+
# %{
520+
# slug: "final",
521+
# status: :pending,
522+
# place_in_total_rank: Enum.random(1..20),
523+
# place_in_category_rank: Enum.random(1..10),
524+
# score: Enum.random(20..100),
525+
# wins_count: Enum.random(0..8),
526+
# games_count: Enum.random(1..10),
527+
# time_spent_in_seconds: Enum.random(100..5000)
528+
# }
529+
# ]
530+
# })

0 commit comments

Comments
 (0)