aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorunknown <b01902104@pclab48.pclab.csie.ntu.edu.tw>2012-12-18 13:34:34 +0800
committerunknown <b01902104@pclab48.pclab.csie.ntu.edu.tw>2012-12-18 13:34:34 +0800
commit3a16e33c41defb923f9b46d7feaa52b1171d512c (patch)
tree173a96cc11e533679d84730736316b5f442cf276
parentc781e48368102c881cba62db9472f8a8a046fce6 (diff)
downloadinccalendar-3a16e33c41defb923f9b46d7feaa52b1171d512c.tar.gz
inccalendar-3a16e33c41defb923f9b46d7feaa52b1171d512c.tar.zst
inccalendar-3a16e33c41defb923f9b46d7feaa52b1171d512c.zip
insert.py ¼W¥[ remind
-rw-r--r--access/__init__.py1
-rw-r--r--access/insert.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/access/__init__.py b/access/__init__.py
index aed4de3..5328090 100644
--- a/access/__init__.py
+++ b/access/__init__.py
@@ -9,4 +9,5 @@ class CalEvent(db.Model):
icon = db.IntegerProperty()
begin = db.DateTimeProperty(required=True)
datafrom = db.StringProperty(required=True)
+ remind = db.IntegerProperty()
diff --git a/access/insert.py b/access/insert.py
index 02c88cf..5e78798 100644
--- a/access/insert.py
+++ b/access/insert.py
@@ -29,6 +29,7 @@ class InsertEvent(webapp2.RequestHandler):
day = thisbegindate
);
thisdatafrom = self.request.get('datafrom')
+ thisremind = self.request.get('remind')
newcalevent = CalEvent(
db.Key.from_path('user', guserid.email()),
@@ -39,6 +40,7 @@ class InsertEvent(webapp2.RequestHandler):
newcalevent.title = thistitle
newcalevent.icon = thisicon
+ newcalevent.remind = thisremind
newcalevent.put()