Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Modul Kalender #6

Open
joliyea opened this issue Jun 25, 2020 · 6 comments
Open

Modul Kalender #6

joliyea opened this issue Jun 25, 2020 · 6 comments
Assignees
Milestone

Comments

@joliyea
Copy link
Collaborator

joliyea commented Jun 25, 2020

Zeigt alle aktuellen Termine (Kultur, Blutspende etc) an.

@elanfer elanfer added this to the alpha milestone Jun 25, 2020
@hjanott
Copy link
Collaborator

hjanott commented Jun 26, 2020

DIe Api sagt NISCHTx!!

@hjanott
Copy link
Collaborator

hjanott commented Jun 26, 2020

@hjanott
Copy link
Collaborator

hjanott commented Jun 26, 2020

$.ajax({
    method: "POST",
    url: "../systm/api.php",
    data: {
        cmd: "tips",
        rubrik: activeRubrik,
        orte: orteStringified,
        timeFrom: timeTipsFrom,
        timeTo: timeTipsTo,
        limit: 6,
        theme: theme
    }
})

@hjanott
Copy link
Collaborator

hjanott commented Jun 26, 2020

Das hier wird von requests.post(URL,data) ausgespuckt.

'{"sql":"SELECT dk_veranstaltungen., dk_rubriken., dk_rubriken.name AS rubrikname, dk_veranstaltungsorte.* FROM dk_veranstaltungen LEFT JOIN dk_veranstaltungsorte ON dk_veranstaltungen.o_index = dk_veranstaltungsorte.o_index LEFT JOIN dk_rubriken ON dk_veranstaltungen.dk_rubrik = dk_rubriken.id WHERE (((dk_veranstaltungen.datum_ende IS NULL and dk_veranstaltungen.datum_start < 'timeTipsTo' AND dk_veranstaltungen.datum_start > 'timeTipsFrom') OR (dk_veranstaltungen.datum_ende IS not NULL and dk_veranstaltungen.datum_start < 'timeTipsTo' AND dk_veranstaltungen.datum_ende > 'timeTipsFrom')) AND dk_veranstaltungen.dk_rubrik = activeRubrik) ORDER BY dk_veranstaltungen.datum_start ASC, dk_veranstaltungen.index LIMIT 6","data":"Unknown column 'activeRubrik' in 'where clause'"}'

@hjanott
Copy link
Collaborator

hjanott commented Jun 26, 2020

{
"sql": "SELECT dk_rubriken.*, dk_rubriken.name AS rubrikname FROM dk_rubriken \n ORDER BY dk_rubriken.id ASC",
"data": [
{ "id": 0, "rubrikname": "Alle" },
{ "id": "1", "name": "Musik", "rubrikname": "Musik" },
{ "id": "2", "name": "Theater & B\u00fchne", "rubrikname": "Theater & B\u00fchne" },
{ "id": "3", "name": "Literatur", "rubrikname": "Literatur" },
{ "id": "4", "name": "Kunst & Ausstellungen", "rubrikname": "Kunst & Ausstellungen" },
{ "id": "5", "name": "Feste, M\u00e4rkte, Messen", "rubrikname": "Feste, M\u00e4rkte, Messen" },
{ "id": "6", "name": "Nachtleben", "rubrikname": "Nachtleben" },
{ "id": "7", "name": "Kino", "rubrikname": "Kino" },
{ "id": "8", "name": "Familie", "rubrikname": "Familie" },
{ "id": "9", "name": "Sport", "rubrikname": "Sport" },
{ "id": "10", "name": "F\u00fchrungen", "rubrikname": "F\u00fchrungen" },
{ "id": "11", "name": "Vortr\u00e4ge", "rubrikname": "Vortr\u00e4ge" },
{ "id": "12", "name": "Verschiedenes", "rubrikname": "Verschiedenes" }
]
}

@hjanott
Copy link
Collaborator

hjanott commented Jun 27, 2020

In der Api mit Integer 1 - 34 auswählbare Orte: (Alle) Alfhausen Ankum Badbergen Bad Essen Bad Iburg Bad Laer Bad Rothenfelde Belm Berge Bersenbrück Bippen Bissendorf Bohmte Bramsche Dissen a.T.W. Eggermühlen Fürstenau Georgsmarienhütte Gehrde Glandorf Hagen a.T.W. Hasbergen Hilter Kettenkamp Melle Menslage Merzen Neuenkirchen Nortrup Ostercappeln Quakenbrück Rieste Voltlage

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants