Minor Fix: Fixed bug for MAX_RSS_FEED
authorHarishankar <v.harishankar@gmail.com>
Tue, 26 May 2020 06:19:46 +0000 (11:49 +0530)
committerHarishankar <v.harishankar@gmail.com>
Tue, 26 May 2020 06:19:46 +0000 (11:49 +0530)
Fixed small bug in MAX_RSS_FEED - fixed the comparison operator
to < from <=

biawebdocumenttree.hpp

index eeb8b15..a9f1ccd 100644 (file)
@@ -246,7 +246,7 @@ namespace biaweb {
                         urlpath + doc.get_filename() + ".html", 
                         doc.get_creation_date());
             // If the items don't exceed max size of RSS feed
-            if (feed.get()->get_num_items() <= MAX_RSS_FEED)
+            if (feed.get()->get_num_items() < MAX_RSS_FEED)
                 feed.get()->add_rss_item (fitem);                        
             // Add the document details to the document list
             DocListItem item (&doc, urlpath);