]> git.wh0rd.org Git - tt-rss.git/commitdiff
further updates to xml import ui
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 2 Dec 2005 08:33:03 +0000 (09:33 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 2 Dec 2005 08:33:03 +0000 (09:33 +0100)
xml-export.php

index 446d315a0e4749cd7d75037de2f29bf551cad33e..df497aa8a15469a3accd6305c8c3a9e2f1f56fe1 100644 (file)
                                updated,
                                guid,
                                link,
-                               date_entered,
-                               last_read,
+                               SUBSTRING(date_entered,1,16) AS date_entered,
+                               SUBSTRING(last_read,1,16) AS last_read, 
                                comments,
                                ttrss_feeds.feed_url AS feed_url,
                                ttrss_feeds.title AS feed_title
                        FROM 
                                ttrss_entries,ttrss_feeds
                        WHERE
-                               feed_id = ttrss_feeds.id $marked_qpart $unread_qpart");
+                               feed_id = ttrss_feeds.id $marked_qpart $unread_qpart 
+                       ORDER BY ttrss_entries.id");
                                
        } else if ($schema_version == 2) {
 
                                updated,
                                guid,
                                link,
-                               date_entered,
-                               last_read,
+                               SUBSTRING(date_entered,1,16) AS date_entered,
+                               SUBSTRING(last_read,1,16) AS last_read, 
                                comments,
                                ttrss_feeds.feed_url AS feed_url,
                                ttrss_feeds.title AS feed_title
                        WHERE
                                ttrss_user_entries.owner_uid = '$owner_uid' AND
                                ref_id = ttrss_entries.id AND
-                               feed_id = ttrss_feeds.id $marked_qpart $unread_qpart");
+                               feed_id = ttrss_feeds.id $marked_qpart $unread_qpart
+                       ORDER BY ttrss_entries.id");
 
        } else {