File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ def find_or_initialize_team(id, team)
76
76
pgteam . reason_name_2 = team . reason_name_2
77
77
pgteam . reason_name_3 = team . reason_name_3
78
78
pgteam . size = team . size
79
- pgteam . slug = team . slug
79
+ #pgteam.slug = team.slug
80
+
80
81
pgteam . stack_list = team . stack_list
81
82
pgteam . twitter = team . twitter
82
83
pgteam . upcoming_events = team . upcoming_events
@@ -89,13 +90,19 @@ def find_or_initialize_team(id, team)
89
90
pgteam . youtube_url = team . youtube_url
90
91
91
92
scale = 8
92
- pgteam . mean = team . mean . to_d . round ( scale )
93
- pgteam . total = team . total . to_d . round ( scale )
94
- pgteam . median = team . median . to_d . round ( scale )
95
- pgteam . score = team . score . to_d . round ( scale )
93
+ #pgteam.mean = team.mean.to_d.round(scale)
94
+ #pgteam.total = team.total.to_d.round(scale)
95
+ #pgteam.median = team.median.to_d.round(scale)
96
+ #pgteam.score = team.score.to_d.round(scale)
97
+
96
98
97
99
pgteam . save!
98
100
101
+
102
+ %i( slug mean total median score ) . each do |attr |
103
+ pgteam . update_column ( attr , team . send ( attr ) )
104
+ end
105
+
99
106
if team . avatar && team . avatar . file
100
107
pgteam . update_column ( :avatar , team . avatar . file . filename )
101
108
end
You can’t perform that action at this time.
0 commit comments