Skip to content

Commit

Permalink
New wiki page
Browse files Browse the repository at this point in the history
  • Loading branch information
dustball committed Jun 22, 2011
1 parent 89f33ee commit f35065d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def get(self):
rooms = ROOM_OPTIONS
rules = memcache.get("rules")
if(rules is None):
rules = urlfetch.fetch("http://wiki.hackerdojo.com/api_v2/op/GetPage/page/Event+Rules+Summary/_type/html", "GET").content
rules = urlfetch.fetch("http://wiki.hackerdojo.com/api_v2/op/GetPage/page/Event+Policies/_type/html", "GET").content
memcache.add("rules", rules, 86400)
self.response.out.write(template.render('templates/new.html', locals()))

Expand Down Expand Up @@ -450,7 +450,7 @@ def get(self, id):
event = Event.get_by_id(int(id))
rules = memcache.get("rules")
if(rules is None):
rules = urlfetch.fetch("http://wiki.hackerdojo.com/api_v2/op/GetPage/page/Event+Rules+Summary/_type/html", "GET").content
rules = urlfetch.fetch("http://wiki.hackerdojo.com/api_v2/op/GetPage/page/Event+Policies/_type/html", "GET").content
memcache.add("rules", rules, 86400)
self.response.out.write(template.render('templates/confirmation.html', locals()))

Expand Down

0 comments on commit f35065d

Please sign in to comment.