Skip to content

Commit

Permalink
rm debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schott committed Nov 28, 2024
1 parent 33c881d commit fd1964e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/internal/db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ AS $$
$$ LANGUAGE plpgsql;

CREATE OR REPLACE FUNCTION london_jam_sessions.sessions_on_date(d date)
RETURNS TABLE (session_id int, dates date[], start timestamptz, dow_start int, dow_d int)
RETURNS TABLE (session_id int, dates date[])
AS $$
BEGIN
RETURN QUERY
SELECT s.session_id, ARRAY[d], s.start_time_utc, EXTRACT(dow FROM s.start_time_utc)::int, EXTRACT(dow FROM d::date)::int FROM london_jam_sessions.jamsessions s
SELECT s.session_id, ARRAY[d] FROM london_jam_sessions.jamsessions s
WHERE s.start_time_utc::date <= d -- make sure we don't match any future sessions
AND (
s.interval = 'Daily' AND s.start_time_utc::date <= d
Expand Down

0 comments on commit fd1964e

Please sign in to comment.