Skip to content
Browse files

Bump cache version

  • Loading branch information...
1 parent 5691655 commit 03519eb2c3a2e2f1ea1445fa245bea71b2ce86b3 @dustball dustball committed Feb 22, 2013
Showing with 22 additions and 3 deletions.
  1. +19 −0 main.py
  2. +3 −3 templates/main.html
View
19 main.py
@@ -376,6 +376,24 @@ def get(self):
self.response.out.write("Sorry, need admin access")
+#class SigninRecord(db.Model):
+# email = db.StringProperty(required=True)
+# first_signin = db.DateTimeProperty(auto_now_add=True)
+# last_signin = db.DateTimeProperty()
+# signins = db.IntegerProperty()
+#
+
+class RecentActiveHandler(webapp.RequestHandler):
+ def get(self):
+ for signin in SigninRecord.all().order("-signins"):
+ if "2013-02" in str(signin.last_signin) and signin.signins>1:
+ self.response.out.write(signin.email)
+ self.response.out.write(",")
+ self.response.out.write(signin.signins)
+ self.response.out.write(",")
+ self.response.out.write(signin.last_signin)
+ self.response.out.write("<br/>")
+
# Used by /stats/*
class StatsHandler(webapp.RequestHandler):
def get(self,format):
@@ -505,6 +523,7 @@ def main():
(r'^/_ah/mail/there.*', MailHandler),
('/eventmode', EventModeHandler),
('/report/donations', DonationReportHandler),
+ ('/report/recentactive', RecentActiveHandler),
('/report/doorlog', DoorLogReportHandler),
('/ministaff', MiniStaffHandler),
('/signin', SigninHandler),
View
6 templates/main.html
@@ -4,8 +4,8 @@
<title>Sign in</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="/static/md5.js"></script>
- <script type="text/javascript" src="/static/signin.js?v=10"></script>
- <link rel="stylesheet" type="text/css" href="/static/signin.css" />
+ <script type="text/javascript" src="/static/signin.js?v=11"></script>
+ <link rel="stylesheet" type="text/css" href="/static/signin.css?v=11" />
</head>
<body id="body">
@@ -207,4 +207,4 @@ <h2 style="margin-top:0">Please use your @hackerdojo.com address</h2>
</audio>
</body>
-</html>
+</html>

0 comments on commit 03519eb

Please sign in to comment.
Something went wrong with that request. Please try again.