Commit a51e5f14 authored by fred's avatar fred
Browse files

sql fix

parent 5cf8e8bd
......@@ -53,7 +53,7 @@ class EmissionDetailView(DetailView):
SELECT emissions_episode.*,
datetime AS first_diffusion
FROM emissions_episode, emissions_diffusion
WHERE == emissions_diffusion.episode_id
WHERE = emissions_diffusion.episode_id
AND emissions_episode.emission_id = %s
AND datetime = (SELECT MIN(datetime)
FROM emissions_diffusion
Markdown is supported
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