From 05b0bbb283a2a54b5e49c9d6cb9c99fbe24beb70 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Fri, 3 Dec 2010 08:02:11 +0100 Subject: Updated code for new data structure. #3 --- articles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'articles.py') diff --git a/articles.py b/articles.py index 76c8be3d..7c019ae7 100644 --- a/articles.py +++ b/articles.py @@ -25,7 +25,7 @@ __date__ = "$Date: 2010/12/02 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" - +from collections import OrderedDict class Feed(object): """ @@ -42,7 +42,7 @@ class Feed(object): self.mail = ""#mail self.nb_articles = ""#nb_articles self.nb_unread_articles = ""#nb_unread_articles - self.articles = []#articles_list + self.articles = OrderedDict()#articles_list class Article(object): -- cgit