Repository: svthalia/concrexit

Issue:
Change the header photos
### Is your feature request related to a problem? Please describe.
The header photos are a bit outdated 

### Describe the solution you'd like
Choose some new photos

### Motivation
<img width="1306" alt="image" src="https://user-images.githubusercontent.com/7915741/164710169-e2d4ac27-04f0-48e6-bceb-bc05a1d3c30f.png">
these guys are old
<img width="1306" alt="image" src="https://user-images.githubusercontent.com/7915741/164710211-ad6fa23f-b021-4dab-9f4f-de45b11c56a2.png">
this image is lowres and old

### Describe alternatives you've considered
Not

### Additional context
I have access to the RU Brandportal with nice stock images of the university that we can use


Discussion:
Very much bib.

Also you call me and jelle old 😠 
Just sent another email to the paparazcie requesting an update
Sending an email again
Any reply yet? Otherwise I'll go pressure them :)
Nope they're ignoring me

Resolving patch:
diff --git a/website/photos/models.py b/website/photos/models.py
--- a/website/photos/models.py
+++ b/website/photos/models.py
@@ -188,8 +188,8 @@ def cover(self):
         # Not prefetched because this should be rare and is a lot of data
         # `exists` is faster in theory, but requires everything to be fetched later anyways
         if self.photo_set.exists():
-            random.seed(self.dirname)
-            cover = random.choice(self.photo_set.all())
+            r = random.Random(self.dirname)
+            cover = r.choice(self.photo_set.all())
         return cover
 
     def __str__(self):
diff --git a/website/thaliawebsite/templatetags/pick_header_image.py b/website/thaliawebsite/templatetags/pick_header_image.py
--- a/website/thaliawebsite/templatetags/pick_header_image.py
+++ b/website/thaliawebsite/templatetags/pick_header_image.py
@@ -3,19 +3,40 @@
 
 from django import template
 from django.contrib.staticfiles.storage import staticfiles_storage
+from django.utils.safestring import mark_safe
 
 register = template.Library()
 
 HEADERS = [
-    "img/headers/banner_default.jpg",
-    "img/headers/banner2.jpg",
-    "img/headers/banner4.jpg",
-    "img/headers/banner5.jpg",
-    "img/headers/banner6.jpg",
+    "img/headers/banner_default",
+    "img/headers/banner_bicycles",
+    "img/headers/banner_huygenshall",
+    "img/headers/banner_huygensfront",
+    "img/headers/banner_huygens",
+    "img/headers/banner_huygenstent",
+    "img/headers/banner_robot",
+    "img/headers/banner_tent",
+]
+
+HEADERS_FUN = [
+    "img/headers/banner_wine",
+    "img/headers/banner_winetasting",
+    "img/headers/banner_christmas",
+    "img/headers/banner_huygenstent",
+    "img/headers/banner_bingo",
+    "img/headers/banner_food",
 ]
 
 
 @register.simple_tag
-def pick_header_image():
+def pick_header_image(type="normal"):
     """Render a random header image."""
-    return staticfiles_storage.url(random.choice(HEADERS))
+    if type == "fun":
+        headers = HEADERS_FUN
+    else:
+        headers = HEADERS
+    header = random.choice(headers)
+    header_2k = staticfiles_storage.url(header + "-2k.webp")
+    header_5k = staticfiles_storage.url(header + "-5k.webp")
+
+    return mark_safe(f"{header_2k}, {header_5k} 3x")


Test patch: