From 416e7f03810b0704df301a8621a47c510fc312ab Mon Sep 17 00:00:00 2001
From: Felix Eckhofer <felix@eckhofer.com>
Date: Mon, 23 Dec 2024 23:36:12 +0100
Subject: [PATCH] Disable creating old events

---
 db/seeds.rb | 73 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 38 insertions(+), 35 deletions(-)

diff --git a/db/seeds.rb b/db/seeds.rb
index b1d241e..5192617 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -8,43 +8,46 @@
 #     MovieGenre.find_or_create_by!(name: genre_name)
 #   end
 
-Conference.find_or_create_by!(slug: "rp2023") do |c|
-  c.name = "re:publica 2023"
-  c.time_zone = "Berlin"
-  c.starts_at = DateTime.parse("Mon, 05 Jun 2023 08:30:00.000000000 UTC +00:00")
-  c.ends_at = DateTime.parse("Wed, 07 Jun 2023 20:50:00.000000000 UTC +00:00")
-  c.data = {
-    "speakers_url" => "https://re-publica.com/sites/default/files/extappdata/2023/speaker.json",
-    "sessions_url" => "https://re-publica.com/sites/default/files/extappdata/2023/session.json"
-  }
-  c.import_job_class = "republica_2023_or_later"
-  c.location = "Arena Berlin"
-end
+# Conference.find_or_create_by!(slug: "rp2023") do |c|
+#   c.name = "re:publica 2023"
+#   c.time_zone = "Berlin"
+#   c.starts_at = DateTime.parse("Mon, 05 Jun 2023 08:30:00.000000000 UTC +00:00")
+#   c.ends_at = DateTime.parse("Wed, 07 Jun 2023 20:50:00.000000000 UTC +00:00")
+#   c.data = {
+#     "speakers_url" => "https://re-publica.com/sites/default/files/extappdata/2023/speaker.json",
+#     "sessions_url" => "https://re-publica.com/sites/default/files/extappdata/2023/session.json"
+#   }
+#   c.import_job_class = "republica_2023_or_later"
+#   c.location = "Arena Berlin"
+#   c.save!
+# end
 
-Conference.find_or_create_by!(slug: "rp2024") do |c|
-  c.name = "re:publica 2024"
-  c.time_zone = "Berlin"
-  c.starts_at = DateTime.parse("27 May 2024 10:30 CEST")
-  c.ends_at = DateTime.parse("29 May 2024 19:45 CEST")
-  c.data = {
-    "speakers_url" => "https://re-publica.com/sites/default/files/extappdata/2024/speaker.json",
-    "sessions_url" => "https://re-publica.com/sites/default/files/extappdata/2024/session.json"
-  }
-  c.import_job_class = "republica_2023_or_later"
-  c.location = "STATION Berlin"
-end
+# Conference.find_or_create_by!(slug: "rp2024") do |c|
+#   c.name = "re:publica 2024"
+#   c.time_zone = "Berlin"
+#   c.starts_at = DateTime.parse("27 May 2024 10:30 CEST")
+#   c.ends_at = DateTime.parse("29 May 2024 19:45 CEST")
+#   c.data = {
+#     "speakers_url" => "https://re-publica.com/sites/default/files/extappdata/2024/speaker.json",
+#     "sessions_url" => "https://re-publica.com/sites/default/files/extappdata/2024/session.json"
+#   }
+#   c.import_job_class = "republica_2023_or_later"
+#   c.location = "STATION Berlin"
+#   c.save!
+# end
 
-Conference.find_or_create_by!(slug: "37c3") do |c|
-  c.name = "37th Chaos Communication Congress"
-  c.time_zone = "Berlin"
-  c.starts_at = DateTime.parse("27 December 2023 10:30 CET")
-  c.ends_at = DateTime.parse("30 December 2023 19:00 CET")
-  c.data = {
-    "schedule_url" => "https://fahrplan.events.ccc.de/congress/2023/fahrplan/schedule.json"
-  }
-  c.import_job_class = "pretalx"
-  c.location = "Congress Center Hamburg"
-end
+# Conference.find_or_create_by!(slug: "37c3") do |c|
+#   c.name = "37th Chaos Communication Congress"
+#   c.time_zone = "Berlin"
+#   c.starts_at = DateTime.parse("27 December 2023 10:30 CET")
+#   c.ends_at = DateTime.parse("30 December 2023 19:00 CET")
+#   c.data = {
+#     "schedule_url" => "https://fahrplan.events.ccc.de/congress/2023/fahrplan/schedule.json"
+#   }
+#   c.import_job_class = "pretalx"
+#   c.location = "Congress Center Hamburg"
+#   c.save!
+# end
 
 Conference.find_or_create_by!(slug: "38c3") do |c|
   c.name = "38th Chaos Communication Congress (de-en)"
-- 
GitLab