[Debconf-video-commits] r142 - package/trunk/src

benh at alioth.debian.org benh at alioth.debian.org
Mon Aug 4 19:50:49 UTC 2008


Author: benh
Date: 2008-08-04 19:50:48 +0000 (Mon, 04 Aug 2008)
New Revision: 142

Modified:
   package/trunk/src/dc-make-rss
Log:
Changed file selection query to limit events to current conference.


Modified: package/trunk/src/dc-make-rss
===================================================================
--- package/trunk/src/dc-make-rss	2008-08-04 19:46:48 UTC (rev 141)
+++ package/trunk/src/dc-make-rss	2008-08-04 19:50:48 UTC (rev 142)
@@ -73,11 +73,13 @@
   ON video_event_recording.recording_id = video_recording.id)
  JOIN video_file_status
  ON video_target_file.file_status_id = video_file_status.id)
-WHERE video_target_file.target_format_id = %(format_id)d
+WHERE event.conference_id = %(conference_id)s
+      AND video_target_file.target_format_id = %(format_id)d
       AND published_time IS NOT NULL
 ORDER BY published_time DESC
 """,
-                {'format_id': format_id})
+                {'conference_id': conference_id,
+                 'format_id': format_id})
     for (published_time, start_time, end_time, base_name,
          event_id, title, event_desc) in cur.fetchall():
         # Convert string date-times back to proper types




More information about the Debconf-video-commits mailing list