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

des at alioth.debian.org des at alioth.debian.org
Mon Aug 11 15:56:23 UTC 2008


Author: des
Date: 2008-08-11 15:56:22 +0000 (Mon, 11 Aug 2008)
New Revision: 249

Modified:
   package/trunk/src/dc-import-recordings
Log:
Handle multiple files created in the same second gracefully


Modified: package/trunk/src/dc-import-recordings
===================================================================
--- package/trunk/src/dc-import-recordings	2008-08-10 20:34:47 UTC (rev 248)
+++ package/trunk/src/dc-import-recordings	2008-08-11 15:56:22 UTC (rev 249)
@@ -56,6 +56,9 @@
         date_rec, room, time_rec = (
             filename[len(config['FILE_BASE']) + 4 : -3].split('/'))
 
+        # Handle multiple files created in the same second, NOP for others
+        time_rec = time_rec.split('-')[0]
+
         try:
             cur.execute(
                 'INSERT INTO video_recording(conference_id, conference_room,'




More information about the Debconf-video-commits mailing list