Sortieren und Filtern wie in Excel in jeder Tabelle, Ansichten je Benutzer (0.13.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
@@ -364,6 +364,7 @@ export async function baueApp(o: Optionen): Promise<FastifyInstance> {
|
||||
const daten: Record<string, unknown[]> = {};
|
||||
for (const t of [...TABELLEN, ...NUR_SICHERUNG]) daten[t.pfad] = (await pool.query(`select * from ${t.name} order by ${t.sortierung}`)).rows;
|
||||
daten.benutzer = await benutzerFuerSicherung(pool);
|
||||
daten.ansichten = (await pool.query("select id, anmeldename, tabelle, daten from ansicht order by anmeldename, tabelle")).rows;
|
||||
const stand = new Date().toISOString();
|
||||
reply.header("content-disposition", `attachment; filename="betrieb-${stand.slice(0, 10)}.json"`);
|
||||
return { programm: "betrieb", version: VERSION, stand, einstellungen: await ladeEinstellungen(), daten };
|
||||
|
||||
Reference in New Issue
Block a user