From a6a745da93b4c8be76dcef51f396f427ead8e7dc Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 16 Sep 2020 14:58:12 +0800 Subject: [PATCH] Change Header1 --- app/controllers/concerns/laboratory_helper.rb | 2 +- db/seeds.rb | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/controllers/concerns/laboratory_helper.rb b/app/controllers/concerns/laboratory_helper.rb index 33e8e0f5..bcdc483d 100644 --- a/app/controllers/concerns/laboratory_helper.rb +++ b/app/controllers/concerns/laboratory_helper.rb @@ -43,7 +43,7 @@ module LaboratoryHelper # my_organ: "https://www.trustie.net/users/#{current_user.try(:login)}/user_organizations", # default_url: "https://www.trustie.net/", tiding_url: "http://39.105.176.215/users/#{current_user.try(:login)}/user_tidings", - # register_url: "https://www.trustie.net/login?login=false" + register_url: "http://39.105.176.215/login" } end diff --git a/db/seeds.rb b/db/seeds.rb index c5169d6b..87915959 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -28,4 +28,11 @@ # vod_status: "uploaded", # published_at: nil, # filesize: 14877403 -# } \ No newline at end of file +# } + + +# lan_ids = ProjectLanguage.select(:name, :id).pluck(:id) * 4 +# projects = Project.where(project_language_id: [nil, ""]) +# projects.each_with_index do |p,index| +# p.update_attribute(:project_language_id, lan_ids[index]) +# end \ No newline at end of file