diff --git a/data/prizes/audiotechnica.png b/data/prizes/audiotechnica.png deleted file mode 100644 index cd9ce0ff..00000000 Binary files a/data/prizes/audiotechnica.png and /dev/null differ diff --git a/data/prizes/bloco.png b/data/prizes/bloco.png deleted file mode 100644 index c5ab4334..00000000 Binary files a/data/prizes/bloco.png and /dev/null differ diff --git a/data/prizes/caneca.png b/data/prizes/caneca.png deleted file mode 100644 index 9fd94374..00000000 Binary files a/data/prizes/caneca.png and /dev/null differ diff --git a/data/prizes/caneta.png b/data/prizes/caneta.png deleted file mode 100644 index d00667f9..00000000 Binary files a/data/prizes/caneta.png and /dev/null differ diff --git a/data/prizes/contest_entry.png b/data/prizes/contest_entry.png deleted file mode 100644 index b6c6b3f3..00000000 Binary files a/data/prizes/contest_entry.png and /dev/null differ diff --git a/data/prizes/drone.png b/data/prizes/drone.png deleted file mode 100644 index 220f97e4..00000000 Binary files a/data/prizes/drone.png and /dev/null differ diff --git a/data/prizes/echo_dot.png b/data/prizes/echo_dot.png deleted file mode 100644 index cbc91adb..00000000 Binary files a/data/prizes/echo_dot.png and /dev/null differ diff --git a/data/prizes/google_nest_mini.png b/data/prizes/google_nest_mini.png deleted file mode 100644 index 7819797b..00000000 Binary files a/data/prizes/google_nest_mini.png and /dev/null differ diff --git a/data/prizes/images/airfrier.png b/data/prizes/images/airfrier.png new file mode 100644 index 00000000..c43b0577 Binary files /dev/null and b/data/prizes/images/airfrier.png differ diff --git a/data/roulette/chocolates.png b/data/prizes/images/chocolates.png similarity index 100% rename from data/roulette/chocolates.png rename to data/prizes/images/chocolates.png diff --git a/data/prizes/images/entries.png b/data/prizes/images/entries.png new file mode 100644 index 00000000..ba543ff8 Binary files /dev/null and b/data/prizes/images/entries.png differ diff --git a/data/prizes/images/fnac-card.png b/data/prizes/images/fnac-card.png new file mode 100644 index 00000000..305fe32f Binary files /dev/null and b/data/prizes/images/fnac-card.png differ diff --git a/data/prizes/images/gomas.png b/data/prizes/images/gomas.png new file mode 100644 index 00000000..63fcd8f1 Binary files /dev/null and b/data/prizes/images/gomas.png differ diff --git a/data/prizes/images/googlenest.png b/data/prizes/images/googlenest.png new file mode 100644 index 00000000..91fc15bd Binary files /dev/null and b/data/prizes/images/googlenest.png differ diff --git a/data/prizes/images/headsetartic.png b/data/prizes/images/headsetartic.png new file mode 100644 index 00000000..be8ec76a Binary files /dev/null and b/data/prizes/images/headsetartic.png differ diff --git a/data/prizes/images/hoodie-sei-22.png b/data/prizes/images/hoodie-sei-22.png new file mode 100644 index 00000000..df392c45 Binary files /dev/null and b/data/prizes/images/hoodie-sei-22.png differ diff --git a/data/prizes/images/jantar_empresarial.svg b/data/prizes/images/jantar_empresarial.svg new file mode 100644 index 00000000..a7e5b817 --- /dev/null +++ b/data/prizes/images/jantar_empresarial.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/prizes/images/kitchaves.png b/data/prizes/images/kitchaves.png new file mode 100644 index 00000000..5525d702 Binary files /dev/null and b/data/prizes/images/kitchaves.png differ diff --git a/data/prizes/images/lucky_bastard.svg b/data/prizes/images/lucky_bastard.svg new file mode 100644 index 00000000..ee2eec43 --- /dev/null +++ b/data/prizes/images/lucky_bastard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/prizes/images/miband.png b/data/prizes/images/miband.png new file mode 100644 index 00000000..b26a66c4 Binary files /dev/null and b/data/prizes/images/miband.png differ diff --git a/data/prizes/images/mousepad.png b/data/prizes/images/mousepad.png new file mode 100644 index 00000000..cc8a4816 Binary files /dev/null and b/data/prizes/images/mousepad.png differ diff --git a/data/roulette/nada.png b/data/prizes/images/nada.png similarity index 100% rename from data/roulette/nada.png rename to data/prizes/images/nada.png diff --git a/data/prizes/images/odisseias.png b/data/prizes/images/odisseias.png new file mode 100644 index 00000000..cad3e6bc Binary files /dev/null and b/data/prizes/images/odisseias.png differ diff --git a/data/prizes/images/powerbank.png b/data/prizes/images/powerbank.png new file mode 100644 index 00000000..1661b60d Binary files /dev/null and b/data/prizes/images/powerbank.png differ diff --git a/data/prizes/images/sei-22-caneca.png b/data/prizes/images/sei-22-caneca.png new file mode 100644 index 00000000..f4b031a6 Binary files /dev/null and b/data/prizes/images/sei-22-caneca.png differ diff --git a/data/prizes/images/sei-23-caneca.png b/data/prizes/images/sei-23-caneca.png new file mode 100644 index 00000000..d7894840 Binary files /dev/null and b/data/prizes/images/sei-23-caneca.png differ diff --git a/data/prizes/images/steam-card.png b/data/prizes/images/steam-card.png new file mode 100644 index 00000000..7e56488c Binary files /dev/null and b/data/prizes/images/steam-card.png differ diff --git a/data/prizes/images/tokens.png b/data/prizes/images/tokens.png new file mode 100644 index 00000000..cb259839 Binary files /dev/null and b/data/prizes/images/tokens.png differ diff --git a/data/prizes/jbl_flip_5.png b/data/prizes/jbl_flip_5.png deleted file mode 100644 index 81b1671a..00000000 Binary files a/data/prizes/jbl_flip_5.png and /dev/null differ diff --git a/data/prizes/jbl_go_3.png b/data/prizes/jbl_go_3.png deleted file mode 100644 index 167f9817..00000000 Binary files a/data/prizes/jbl_go_3.png and /dev/null differ diff --git a/data/prizes/miband5.png b/data/prizes/miband5.png deleted file mode 100644 index 4e601741..00000000 Binary files a/data/prizes/miband5.png and /dev/null differ diff --git a/data/prizes/nothing.png b/data/prizes/nothing.png deleted file mode 100644 index bf3a522f..00000000 Binary files a/data/prizes/nothing.png and /dev/null differ diff --git a/data/prizes/prizes.csv b/data/prizes/prizes.csv new file mode 100644 index 00000000..96cdbbc9 --- /dev/null +++ b/data/prizes/prizes.csv @@ -0,0 +1,21 @@ +name,max_amount_per_attendee,stock,probability,is_redeemable,path_to_image +Air Fryer,1,1,0.0008,yes,data/prizes/images/airfrier.png +Odisseias,1,1,0.0008,yes,data/prizes/images/odisseias.png +Nest Mini,1,1,0.00085,yes,data/prizes/images/googlenest.png +Powerbank,1,1,0.0009,yes,data/prizes/images/powerbank.png +Mi Band,1,1,0.00085,yes,data/prizes/images/miband.png +Cartão Fnac 15€,1,4,0.0011,yes,data/prizes/images/fnac-card.png +Cartão Steam 10€,1,4,0.0011,yes,data/prizes/images/steam-card.png +Set Ferramentas,1,1,0.0009,yes,data/prizes/images/kitchaves.png +Mousepad,1,3,0.00012,yes,data/prizes/images/mousepad.png +Fones Bluetooth,1,3,0.00012,yes,data/prizes/images/headsetartic.png +Hoodie SEI'22,1,9,0.0025,yes,data/prizes/images/hoodie-sei-22.png +Caneca SEI'22,1,9,0.0025,yes,data/prizes/images/sei-22-caneca.png +Caneca SEI'23,1,9,0.0025,yes,data/prizes/images/sei-23-caneca.png +Chocolates,1,96,0.015,yes,data/prizes/images/chocolates.png +Gomas,1,200,0.03,yes,data/prizes/images/gomas.png +1 Entrada no Jantar Empresarial,1,2,0.002,no,data/prizes/images/jantar_empresarial.svg +Lucky Bastard,1,999999,0.1,no,data/prizes/images/lucky_bastard.svg +Tokens,999999,999999,0.07,no,data/prizes/images/tokens.png +Entradas para o sorteio final,999999,999999,0.17,no,data/prizes/images/entries.png +Nada,999999,999999,0.59796,no,data/prizes/images/nada.png \ No newline at end of file diff --git a/data/prizes/raspberry_pi_4.png b/data/prizes/raspberry_pi_4.png deleted file mode 100644 index 70855d28..00000000 Binary files a/data/prizes/raspberry_pi_4.png and /dev/null differ diff --git a/data/prizes/sticker_cesium.png b/data/prizes/sticker_cesium.png deleted file mode 100644 index 04b4157f..00000000 Binary files a/data/prizes/sticker_cesium.png and /dev/null differ diff --git a/data/prizes/sticker_sei_logo.png b/data/prizes/sticker_sei_logo.png deleted file mode 100644 index 52c96366..00000000 Binary files a/data/prizes/sticker_sei_logo.png and /dev/null differ diff --git a/data/prizes/sticker_sei_mascot.png b/data/prizes/sticker_sei_mascot.png deleted file mode 100644 index 64214db0..00000000 Binary files a/data/prizes/sticker_sei_mascot.png and /dev/null differ diff --git a/data/prizes/token.png b/data/prizes/token.png deleted file mode 100644 index 7eb2da31..00000000 Binary files a/data/prizes/token.png and /dev/null differ diff --git a/data/prizes/tshirt.png b/data/prizes/tshirt.png deleted file mode 100644 index c921c15e..00000000 Binary files a/data/prizes/tshirt.png and /dev/null differ diff --git a/data/prizes/voucher10.png b/data/prizes/voucher10.png deleted file mode 100644 index 3cf7befa..00000000 Binary files a/data/prizes/voucher10.png and /dev/null differ diff --git a/data/prizes/voucher20.png b/data/prizes/voucher20.png deleted file mode 100644 index d4a3cf1b..00000000 Binary files a/data/prizes/voucher20.png and /dev/null differ diff --git a/data/prizes/voucher50.png b/data/prizes/voucher50.png deleted file mode 100644 index 5f7e1f4d..00000000 Binary files a/data/prizes/voucher50.png and /dev/null differ diff --git a/data/prizes/xbox_gamepass_ultimate_3m.png b/data/prizes/xbox_gamepass_ultimate_3m.png deleted file mode 100644 index c6b97544..00000000 Binary files a/data/prizes/xbox_gamepass_ultimate_3m.png and /dev/null differ diff --git a/data/prizes/xbox_series_x.png b/data/prizes/xbox_series_x.png deleted file mode 100644 index 45c721b3..00000000 Binary files a/data/prizes/xbox_series_x.png and /dev/null differ diff --git a/data/roulette/cartao.png b/data/roulette/cartao.png deleted file mode 100644 index c0b81c88..00000000 Binary files a/data/roulette/cartao.png and /dev/null differ diff --git a/data/roulette/dinner.png b/data/roulette/dinner.png deleted file mode 100644 index fd76517a..00000000 Binary files a/data/roulette/dinner.png and /dev/null differ diff --git a/data/roulette/entries.png b/data/roulette/entries.png deleted file mode 100644 index 82e040b3..00000000 Binary files a/data/roulette/entries.png and /dev/null differ diff --git a/data/roulette/jbl.png b/data/roulette/jbl.png deleted file mode 100644 index fdc53024..00000000 Binary files a/data/roulette/jbl.png and /dev/null differ diff --git a/data/roulette/luckybastard.png b/data/roulette/luckybastard.png deleted file mode 100644 index c4ba73e4..00000000 Binary files a/data/roulette/luckybastard.png and /dev/null differ diff --git a/data/roulette/mascote-SEI22.png b/data/roulette/mascote-SEI22.png deleted file mode 100644 index e07ed8e0..00000000 Binary files a/data/roulette/mascote-SEI22.png and /dev/null differ diff --git a/data/roulette/merch_cesium.png b/data/roulette/merch_cesium.png deleted file mode 100644 index 92920a18..00000000 Binary files a/data/roulette/merch_cesium.png and /dev/null differ diff --git a/data/roulette/merch_sei.png b/data/roulette/merch_sei.png deleted file mode 100644 index b5930613..00000000 Binary files a/data/roulette/merch_sei.png and /dev/null differ diff --git a/data/roulette/ssd.png b/data/roulette/ssd.png deleted file mode 100644 index 98fc1678..00000000 Binary files a/data/roulette/ssd.png and /dev/null differ diff --git a/data/roulette/tokens.png b/data/roulette/tokens.png deleted file mode 100644 index 7cf54d06..00000000 Binary files a/data/roulette/tokens.png and /dev/null differ diff --git a/data/roulette/wacom.png b/data/roulette/wacom.png deleted file mode 100644 index c3e63e04..00000000 Binary files a/data/roulette/wacom.png and /dev/null differ diff --git a/data/roulette/xiaomi.png b/data/roulette/xiaomi.png deleted file mode 100644 index ed920b6e..00000000 Binary files a/data/roulette/xiaomi.png and /dev/null differ diff --git a/data/wheel.csv b/data/wheel.csv deleted file mode 100644 index 582bd975..00000000 --- a/data/wheel.csv +++ /dev/null @@ -1,15 +0,0 @@ -name,max_amount_per_attendee,stock,probability,is_redeemable,path_to_image -SSD Samsung,1,3,0.0005,yes,data/roulette/ssd.png -Wacom S,1,2,0.0005,yes,data/roulette/wacom.png -Merch SEI,1,20,0.006,yes,data/roulette/merch_sei.png -Earbuds Xiaomi,1,6,0.002,yes,data/roulette/xiaomi.png -Merch CeSIUM,1,20,0.007,yes,data/roulette/merch_cesium.png -JBL GO Essential,1,5,0.0015,yes,data/roulette/jbl.png -Gift Card 20€,1,5,0.0015,yes,data/roulette/cartao.png -Gift Card 10€,1,10,0.0075,yes,data/roulette/cartao.png -Chocolates,1,100,0.019,yes,data/roulette/chocolates.png -Lucky Bastard,1,999999,0.1,no,data/roulette/luckybastard.png -Tokens,999999,999999,0.07,no,data/roulette/tokens.png -1 entrada no jantar empresarial,1,1,0.0145,no,data/roulette/dinner.png -Entradas para o sorteio final,999999,999999,0.17,no,data/roulette/entries.png -Nada,999999,999999,0.6,no,data/roulette/nada.png diff --git a/priv/repo/seeds/roulette.exs b/priv/repo/seeds/roulette.exs index 74086a53..1adab78a 100644 --- a/priv/repo/seeds/roulette.exs +++ b/priv/repo/seeds/roulette.exs @@ -14,7 +14,7 @@ defmodule Safira.Repo.Seeds.Roulette do end defp seed_prizes do - Prizes.run(["data/wheel.csv"]) + Prizes.run(["data/prizes/prizes.csv"]) end defp seed_spins do