aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--admin/public/ranking.js2
-rw-r--r--db.js2
-rw-r--r--quotes/public/script.js2
-rw-r--r--zeitung/main.tex3
-rw-r--r--zeitung/parts/generated/students/TGTM13.1/.gitkeep0
-rw-r--r--zeitung/parts/studentprofiles.tex2
-rw-r--r--zeitung/placeholder/.gitignore1
-rwxr-xr-xzeitung/placeholder/get.sh12
8 files changed, 7 insertions, 17 deletions
diff --git a/admin/public/ranking.js b/admin/public/ranking.js
index e836d8b..751affd 100644
--- a/admin/public/ranking.js
+++ b/admin/public/ranking.js
@@ -1,4 +1,4 @@
-const classes = ["teacher", "TGM13.1", "TGM13.2", "TGTM13.1", "TGI13.1", "TGI13.2"];
+const classes = ["teacher", "TGM13.1", "TGM13.2", "TGTM13", "TGI13.1", "TGI13.2"];
fetch("api/questions")
.then((questions) => questions.json())
diff --git a/db.js b/db.js
index c8b83e8..0d24dc6 100644
--- a/db.js
+++ b/db.js
@@ -28,7 +28,7 @@ class DB {
async initValues() {
await this.query("INSERT INTO types (name) VALUES ('pupil'), ('teacher')");
await this.query(
- "INSERT INTO class (name) VALUES ('TGM13.1'), ('TGM13.2'), ('TGTM13.1'), ('TGI13.1'), ('TGI13.2'), ('teacher')",
+ "INSERT INTO class (name) VALUES ('TGM13.1'), ('TGM13.2'), ('TGTM13'), ('TGI13.1'), ('TGI13.2'), ('teacher')",
);
await this.initPolls();
diff --git a/quotes/public/script.js b/quotes/public/script.js
index be2533b..7098b53 100644
--- a/quotes/public/script.js
+++ b/quotes/public/script.js
@@ -1,5 +1,5 @@
const dropdown = document.getElementById("author");
-const classes = ["TGM13.1", "TGM13.2", "TGTM13.1", "TGI13.1", "TGI13.2", "teacher"];
+const classes = ["TGM13.1", "TGM13.2", "TGTM13", "TGI13.1", "TGI13.2", "teacher"];
dropdown.insertAdjacentHTML(
"beforeend",
diff --git a/zeitung/main.tex b/zeitung/main.tex
index 3f4f9eb..5c1d0ac 100644
--- a/zeitung/main.tex
+++ b/zeitung/main.tex
@@ -146,6 +146,9 @@
\sectionmark{#1 #2}
\addcontentsline{toc}{subsection}{#2}
}
+\newcommand{\subtitletoc}[2]{
+ \addcontentsline{toc}{subsection}{#2}
+}
% I don't like paragraph indentation
\setlength{\parindent}{0pt}
diff --git a/zeitung/parts/generated/students/TGTM13.1/.gitkeep b/zeitung/parts/generated/students/TGTM13.1/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/zeitung/parts/generated/students/TGTM13.1/.gitkeep
+++ /dev/null
diff --git a/zeitung/parts/studentprofiles.tex b/zeitung/parts/studentprofiles.tex
index 78f4b92..169755b 100644
--- a/zeitung/parts/studentprofiles.tex
+++ b/zeitung/parts/studentprofiles.tex
@@ -3,7 +3,7 @@
\title{#1}
\classoverview{#1}
- \subtitle{#1}{Steckbriefe}
+ \subtitletoc{#1}{Steckbriefe}
\inputall{parts/generated/students/#1}
\subtitle{#1}{Zitate}
diff --git a/zeitung/placeholder/.gitignore b/zeitung/placeholder/.gitignore
deleted file mode 100644
index 76ce7fc..0000000
--- a/zeitung/placeholder/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.jpg
diff --git a/zeitung/placeholder/get.sh b/zeitung/placeholder/get.sh
deleted file mode 100755
index 000e14a..0000000
--- a/zeitung/placeholder/get.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-MAX=300
-if [[ ! -z "$1" ]]; then
- MAX=$1
-fi
-
-for i in $( seq $MAX ); do
-FILE=${i}.jpg
-curl 'https://thispersondoesnotexist.com/image' -H 'authority: thispersondoesnotexist.com' -H 'pragma: no-cache' -H 'cache-control: no-cache' -H 'upgrade-insecure-requests: 1' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36' -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'referer: https://thispersondoesnotexist.com/' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.9' --compressed -o $FILE
-sleep 1
-done