summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-14 13:17:22 +0200
committeremkael <emkael@tlen.pl>2016-04-14 13:17:22 +0200
commit60342c7d0e70f569f12dbf5def2343ed5d010511 (patch)
treeb7954ef3b46b145ef4a24d9aabe8feebc2b56a9b
parent769147bbd06dc8a95f24007eb8cba646a1002bb4 (diff)
* iCal entry modification date stored in model
-rw-r--r--app/php/model/Entry.php2
-rw-r--r--app/python/rcal/model.py1
2 files changed, 3 insertions, 0 deletions
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),