From b8427befdcd47816c630480dd74dbb14c926770c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 24 Jul 2018 22:32:15 +0100 Subject: [PATCH] bin/rss-feedparser --- bin/rss-feedparser | 1 + lib/php/db/table.php | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/rss-feedparser b/bin/rss-feedparser index cd1a4fb9..8463a1a3 100755 --- a/bin/rss-feedparser +++ b/bin/rss-feedparser @@ -45,6 +45,7 @@ def getHeadlines( rss_url ): # Title if 'title' in newsitem: + newsitem['title'] = newsitem['title'][:200] line.append(newsitem['title']) else: continue diff --git a/lib/php/db/table.php b/lib/php/db/table.php index abf16be0..95d21b6e 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -732,13 +732,20 @@ Class Table extends nb { $y = $tot; $prev = -1; $next = 999999; + #$next = $tot + 1; + #debug('zaza'); + #$this->debug("x=$x limit=$y prev=$prev next=$next tot=$tot",0); } - if ($prev>=0) $html .= '< '; + if ($prev>=0) { + $html .= '< '; + } $html .= ''.($tot ? ($x+1) : 0).' - '.( $tot<($x+$y) ? $tot : ($x+$y) ).' / '.$tot.''; - if ($next<$tot) $html .= ' >'; + if ($next<$tot) { + $html .= ' >'; + } return $html; -- 2.47.3