Created
December 4, 2010 14:32
-
-
Save anonymous/728218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class kcb(db.Model): | |
owner = db.UserProperty() | |
name = db.StringProperty(multiline=True) | |
time = db.StringProperty(multiline=True) | |
week = db.ListProperty(long) | |
place = db.StringProperty(multiline=True) | |
date = db.DateTimeProperty(auto_now_add=True) | |
KCBs = db.GqlQuery("SELECT * FROM kcb ORDER BY date DESC LIMIT 1000") | |
for KCB in KCBs: | |
#####下面这句######### | |
if NowDay==KCB.time[0] and NowTime==KCB.time[-1] and NowWeek in KCB.week: | |
self.response.out.write('<blockquote>%s</blockquote>' %KCB.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment