예제 #1
0
파일: log.py 프로젝트: BlowBlood/blowblood
 def wrapper(self, *args, **kwargs):
     counter = Counter.all().get()
     if counter is None:
         counter = Counter()
         counter.put()
     if not users.is_current_user_admin():
         counter.count += 1
         counter.put()
     return handler_method(self, *args, **kwargs)
예제 #2
0
파일: log.py 프로젝트: BlowBlood/blowblood
 def wrapper(self, *args, **kwargs):
   counter = Counter.all().get()
   if counter is None:
       counter = Counter()
       counter.put()
   if not users.is_current_user_admin():
     counter.count += 1
     counter.put()
   return handler_method(self, *args, **kwargs)
예제 #3
0
파일: util.py 프로젝트: BlowBlood/blowblood
def getCounter():
  counter = Counter.all().get()
  if counter is None:
    return 0    
  return counter.count