From 60342c7d0e70f569f12dbf5def2343ed5d010511 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 14 Apr 2016 13:17:22 +0200 Subject: * iCal entry modification date stored in model --- app/php/model/Entry.php | 2 ++ app/python/rcal/model.py | 1 + 2 files changed, 3 insertions(+) diff --git a/app/php/model/Entry.php b/app/php/model/Entry.php index 3106e8e..4b93f04 100644 --- a/app/php/model/Entry.php +++ b/app/php/model/Entry.php @@ -14,6 +14,7 @@ class Entry extends ActiveRecord { public $AllDay; public $Name; public $Location; + public $LastModified; public $CalendarID; @@ -25,6 +26,7 @@ class Entry extends ActiveRecord { 'all_day' => 'AllDay', 'name' => 'Name', 'location' => 'Location', + 'last_modified' => 'LastModified', '_calendar' => 'CalendarID' ]; diff --git a/app/python/rcal/model.py b/app/python/rcal/model.py index eb5325e..88672b2 100644 --- a/app/python/rcal/model.py +++ b/app/python/rcal/model.py @@ -79,6 +79,7 @@ class Entry(BASE): all_day = Column(Boolean) name = Column(String(255)) location = Column(String(255)) + last_modified = Column(UTCDateTime) _calendar = Column( String(255), -- cgit v1.2.3