Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public DataInitializer(SectionRepository sectionRepository,
@Transactional
public void run(ApplicationArguments args) {

if (adminRepository.count() > 0) {
System.out.println("=== DataInitializer: seed data already present, skipping ===");
return;
}

// Use the current Monday as an anchor so seed data is always "this semester"
LocalDate thisMonday = LocalDate.now().with(DayOfWeek.MONDAY);

Expand Down
Loading