示例#1
0
		def _by_time_order(x, y, i=i):
			a = newsfeeds[i].headlines.get(newsfeed.gethash(x.title, x.descr), 0)
			b = newsfeeds[i].headlines.get(newsfeed.gethash(y.title, y.descr), 0)
			c = x.title + x.fromfeed
			d = y.title + y.fromfeed
			if a == b:
				if c == d: return 0
				elif c > d: return 1
				else: return -1
			elif a < b: return 1
			else: return -1
示例#2
0
		def so(q):
			return newsfeeds[i].headlines.get(newsfeed.gethash(q.title, q.descr), 0)
示例#3
0
 def so(q):
     return newsfeeds[i].headlines.get(
         newsfeed.gethash(q.title, q.descr), 0)