From d42df55e99fc2555bece685ceab3d6f6ae3964ba Mon Sep 17 00:00:00 2001
From: Felix Eckhofer <felix@eckhofer.com>
Date: Sat, 4 Jan 2025 17:42:46 +0100
Subject: [PATCH] Add example usage for compare_engelsystem_shifts

---
 README.md | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index a77ee7d..c97113f 100644
--- a/README.md
+++ b/README.md
@@ -107,17 +107,18 @@ By running `bin/rails <command>` you can trigger some helpful actions, such as
 
 - Promote user to shiftcoordinator
   ~~~ruby
-  u = User.find_by(name:"username_here")
-  u.shiftcoordinator = true
-  u.save!
+  User.find_by(name:"username_here").update(shiftcoordinator: true)
   ~~~
 
 - Reset user password
   ~~~ruby
   pw = SecureRandom.alphanumeric(12)
-  u = User.find_by(name:"username_here")
-  u.update(password: pw, password_confirmation: pw)
-  u.save!
+  User.find_by(name:"username_here").update(password: pw, password_confirmation: pw)
+  ~~~
+
+- Print differences between local assignments and those in the engelsystem (taking into account assignments in the "variant conferences")
+  ~~~ruby
+  Conference.find_by(slug:"38c3").compare_engelsystem_shifts([Conference.find_by(slug:"38c3-more"), Conference.find_by(slug: "38c3-orga")])
   ~~~
 
 - Send a test message to Telegram
-- 
GitLab