diff --git a/.github/workflows/build-praesentation_at_gj.yaml b/.github/workflows/build-praesentation_at_gj.yaml new file mode 100644 index 0000000..6ec48e0 --- /dev/null +++ b/.github/workflows/build-praesentation_at_gj.yaml @@ -0,0 +1,18 @@ +name: Build Praesentation_AT_GJ.tex +on: [push] +jobs: + build_Praesentation_AT_GJ: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v3 + - name: Compile Praesentation_AT_GJ.tex + uses: xu-cheng/latex-action@v2 + with: + root_file: Praesentation_AT_GJ.tex + latexmk_use_lualatex: true + - name: Upload PDF file + uses: actions/upload-artifact@v3 + with: + name: Praesentation_AT_GJ.pdf + path: Praesentation_AT_GJ.pdf diff --git a/scripts/data.csv b/scripts/data.csv index 0abdebf..3625ed7 100644 --- a/scripts/data.csv +++ b/scripts/data.csv @@ -1,7 +1,6 @@ Kategorie,Bonn,Bund -Ausgefüllte Gesprächsbögen,231,3380 -TVStud-Botschafter*innen,66,1316 -Streikbereit,146,2507 -Aktionsbereit,129,1884 -Gewerkschaftsmitglied,43,1190 -Stand,2023-09-07,2023-09-12 +Ausgefüllte Gesprächsbögen,217,3078 +TVStud-Botschafter*innen,64,1208 +Streikbereit,139,2316 +Aktionsbereit,118,1760 +Gewerkschaftsmitglied,41,1093 diff --git a/scripts/stats.py b/scripts/stats.py index f732e04..546c4b7 100644 --- a/scripts/stats.py +++ b/scripts/stats.py @@ -20,10 +20,8 @@ def get_befragung(): def generate_bundesweite_ziele_tex(): template = env.get_template("bundesweite_ziele.tex") - data = get_aktueller_stand_data() - return template.render( - boegen=data["Bund"][0], + boegen="3078", eintritte="\\textasciitilde{}~200", botschafter="?", befragung=get_befragung(), @@ -39,20 +37,17 @@ def update_bundesweite_ziele_tex(): f.write("\n") f.write("\n") -def get_aktueller_stand_data(): - data_file = "data.csv" - data = pd.read_csv(data_file) - - return data def generate_aktueller_stand_strukturaufbau(): template = env.get_template("aktueller_stand_strukturaufbau.tex") - data = get_aktueller_stand_data() + data_file = "data.csv" + data = pd.read_csv(data_file) return template.render( bonn=data["Bonn"], bund=data["Bund"], + stand=date.fromtimestamp(os.path.getmtime(data_file)).isoformat(), ) diff --git a/scripts/templates/aktueller_stand_strukturaufbau.tex b/scripts/templates/aktueller_stand_strukturaufbau.tex index c53e63a..0f95728 100644 --- a/scripts/templates/aktueller_stand_strukturaufbau.tex +++ b/scripts/templates/aktueller_stand_strukturaufbau.tex @@ -11,7 +11,7 @@ \end{tabularx} \vspace{3em} - {\small Stand: {{ bonn[5] }} (Bonn), {{ bund[5] }} (Bund)} + {\small Stand: {{ stand }}} \end{frame} \endinput diff --git a/slides/aktueller_stand_strukturaufbau.tex b/slides/aktueller_stand_strukturaufbau.tex index 6bb8e44..573487f 100644 --- a/slides/aktueller_stand_strukturaufbau.tex +++ b/slides/aktueller_stand_strukturaufbau.tex @@ -2,16 +2,16 @@ \renewcommand{\arraystretch}{1.5} \begin{tabularx}{\textwidth}{Xrrr} \textbf{Kategorie} & \textbf{Bonn} & \textbf{Bund} \\ - Ausgefüllte Gesprächsbögen & 231 & 3380 \\ - TVStud-Botschafter*innen & 66 & 1316 \\ - Streikbereit & 146 & 2507 \\ - Aktionsbereit & 129 & 1884 \\ + Ausgefüllte Gesprächsbögen & 217 & 3078 \\ + TVStud-Botschafter*innen & 64 & 1208 \\ + Streikbereit & 139 & 2316 \\ + Aktionsbereit & 118 & 1760 \\ Gewerkschaftsmitglied \newline - {\footnotesize ver.di oder GEW} & 43 & 1190 + {\footnotesize ver.di oder GEW} & 41 & 1093 \end{tabularx} \vspace{3em} - {\small Stand: 2023-09-07 (Bonn), 2023-09-12 (Bund)} + {\small Stand: 2023-09-06} \end{frame} \endinput diff --git a/slides/bundesweite_ziele.tex b/slides/bundesweite_ziele.tex index d3b7c87..114d9f7 100644 --- a/slides/bundesweite_ziele.tex +++ b/slides/bundesweite_ziele.tex @@ -3,14 +3,14 @@ \renewcommand{\arraystretch}{1.5} \begin{tabularx}{\textwidth}{Xrrrr} \textbf{Kategorie} & \textbf{Erfolg} & \textbf{großer Erfolg} & \textbf{sehr großer Erfolg} & \textbf{Stand} \\ - Gesprächsbögen & 3100 & 3300 & 3500 & \emph{3380} \\ + Gesprächsbögen & 3100 & 3300 & 3500 & \emph{3078} \\ ver.di-Neueintritte & 275 & - & - & \emph{\textasciitilde{}~200} \\ Tarifbotschafter*innen & 100 & - & - & \emph{?} \\ - digitale Befragung & 1500 & 2500 & 3500 & \emph{2182} + digitale Befragung & 1500 & 2500 & 3500 & \emph{1574} \end{tabularx} \vspace{6em} - {\small Stand:~2023-09-15} + {\small Stand:~2023-09-06} \end{frame} \endinput