Skip to content

Commit

Permalink
add some puts to keep track of progress
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconsaurus committed Feb 9, 2024
1 parent 34bd817 commit bae90ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def initialize(existing_user)
end

def create_users
puts "create users"
@users ||= begin

all_users = {
Expand Down Expand Up @@ -52,6 +53,7 @@ def create_users
end

def create_teams
puts "create teams"
@teams ||= begin

all_teams = {
Expand Down Expand Up @@ -153,6 +155,7 @@ def initialize(setup)
end

def create_populated_projects
puts 'create populated projects'
projects_params = [
{
title: "#{@teams[:main_team_a][:name]} / [a] Main User: Main Team",
Expand Down Expand Up @@ -204,7 +207,6 @@ def create_populated_projects
end

private

def get_medias_params
links = [
'https://meedan.com/post/addressing-misinformation-across-countries-a-pioneering-collaboration-between-taiwan-factcheck-center-vera-files',
Expand Down Expand Up @@ -261,6 +263,8 @@ def get_medias_params
print ">> "
answer = STDIN.gets.chomp

puts "Stretch your legs, this might take a while"

setup = Setup.new(answer.presence) # .presence : returns nil or the string
PopulatedProjects.new(setup).create_populated_projects

Expand Down

0 comments on commit bae90ba

Please sign in to comment.