Skip to content

Commit

Permalink
Merge pull request swapmyvote#799 from baob/issue-794-party-colours-i…
Browse files Browse the repository at this point in the history
…n-poll-chart
  • Loading branch information
aspiers authored Jun 11, 2024
2 parents 0109978 + 31f78f4 commit 28c83a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/party.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Party < ApplicationRecord
for_britain: { name: "For Britain" },
freedom_alliance: { name: "Freedom Alliance" },
independent: { name: "Independent" },
reform: { name: "Reform", ge_default: true },
reform: { name: "Reform", color: "#5bc0de", ge_default: true },
rejoin_eu: { name: "Rejoin eu" },
workers: { name: "Workers" },
yorkshire: { name: "Yorkshire" },
Expand Down
2 changes: 1 addition & 1 deletion db/seeds_for_general_election.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

parties_for_ge.each do |party_attributes|
party = Party.find_or_initialize_by(name: party_attributes[:name])
party.update!(party_attributes.slice(:smv_code, :colour))
party.update!(party_attributes.slice(:smv_code, :color))
puts party_attributes.slice(:name, :smv_code)
end

Expand Down

0 comments on commit 28c83a8

Please sign in to comment.