# HG changeset patch # User Dirk Olmes # Date 1272328250 -7200 # Node ID 87317ba41816c44caefa20b91ac6234c0a503735 # Parent bfd47f55d85b514497fb595eb341a00afc8e7b4e add a creation date for the feed entry diff -r bfd47f55d85b -r 87317ba41816 FeedEntry.py --- a/FeedEntry.py Mon Apr 26 20:46:37 2010 +0200 +++ b/FeedEntry.py Tue Apr 27 02:30:50 2010 +0200 @@ -1,3 +1,5 @@ + +from datetime import datetime class FeedEntry(object): @staticmethod @@ -6,7 +8,7 @@ return result.first() def __init__(self): - pass + self.create_timestamp = datetime.now() def __repr__(self): return "" % (self.pk, self.link) diff -r bfd47f55d85b -r 87317ba41816 Mapping.py --- a/Mapping.py Mon Apr 26 20:46:37 2010 +0200 +++ b/Mapping.py Tue Apr 27 02:30:50 2010 +0200 @@ -22,6 +22,8 @@ feedEntryTable = Table("feed_entry", metadata, Column("pk", Integer, primary_key=True), + Column("create_timestamp", DateTime, nullable=False), + Column("id", String(255), nullable=False), Column("link", String(255), nullable=False), Column("title", String, nullable=False), diff -r bfd47f55d85b -r 87317ba41816 feedupdate-main.py --- a/feedupdate-main.py Mon Apr 26 20:46:37 2010 +0200 +++ b/feedupdate-main.py Tue Apr 27 02:30:50 2010 +0200 @@ -36,6 +36,6 @@ SessionMaker = sessionmaker(bind = engine) session = SessionMaker() - #createFeed(session) - #updateAllFeeds(session) - listFeeds(session) + createFeed(session) + updateAllFeeds(session) + #listFeeds(session)