Commit 9b35bc78 authored by Martin Mareš's avatar Martin Mareš
Browse files

App is installable

parent 8808d85a
- Number of workers DB:
- Access rights
- Reloading
- Ztlumit logování
- Trigger na "last modified" u meetingů - Trigger na "last modified" u meetingů
- indexy
Hook:
- Adjust number of workers
- Ztlumit logování
- hooky na create/delete user - hooky na create/delete user
- přehlednější log - přehlednější log
- indexy
DEST=/srv/mffzoom/app
install:
rsync -av --delete zoom.py templates $(DEST)/
touch $(DEST)/force-reload
...@@ -107,12 +107,13 @@ def main_page(): ...@@ -107,12 +107,13 @@ def main_page():
# XXX: No meeting is ever longer than 24 hours # XXX: No meeting is ever longer than 24 hours
db_query(""" db_query("""
SELECT m.meeting_id, m.topic, m.start_time, m.duration, u.email, u.full_name SELECT m.meeting_id, m.topic, s.start_time, s.duration, u.email, u.full_name
FROM zoom_meetings m FROM zoom_meetings m
JOIN zoom_users u ON u.id = m.host_id JOIN zoom_users u ON u.uid = m.host_uid
WHERE m.start_time >= DATE %s - INTERVAL '1 day' JOIN zoom_schedule s ON s.mid = m.mid
AND m.start_time < DATE %s + INTERVAL '1 day' WHERE s.start_time >= DATE %s - INTERVAL '1 day'
ORDER BY u.email, m.start_time AND s.start_time < DATE %s + INTERVAL '1 day'
ORDER BY u.email, s.start_time
""", """,
(dt, dt)) (dt, dt))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment