Skip to content

Commit

Permalink
Push Edition 2020 participants in a text file
Browse files Browse the repository at this point in the history
  • Loading branch information
pil0u committed Nov 21, 2023
1 parent 705685a commit c433504
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
5 changes: 1 addition & 4 deletions app/domains/achievements/edition2020_mass_unlocker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
module Achievements
class Edition2020MassUnlocker < MassUnlocker
def call
aoc_ids = [
151_323, 1_095_582, 1_222_761, 1_258_899, 1_259_034, 1_259_062, 1_259_379, 1_266_861, 1_266_916, 1_267_074, 1_267_450, 1_276_674,
1_276_836, 1_282_141, 1_283_809, 1_289_187, 1_289_409, 1_291_741, 1_292_231, 1_301_345, 1_304_972, 1_330_508, 1_331_786, 1_349_046
]
aoc_ids = File.readlines("db/static/achievement_edition2020_aoc_ids.txt").map(&:strip)
eligible_users = User.where(aoc_id: aoc_ids)

unlock_for!(eligible_users)
Expand Down
24 changes: 24 additions & 0 deletions db/static/achievement_edition2020_aoc_ids.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
151323
1095582
1222761
1258899
1259034
1259062
1259379
1266861
1266916
1267074
1267450
1276674
1276836
1282141
1283809
1289187
1289409
1291741
1292231
1301345
1304972
1330508
1331786
1349046

0 comments on commit c433504

Please sign in to comment.