Exemple #1
0
 def get(self):
     n = 0
     for i in range(20):
         ac = URICounter(count=i,
                          total_counter_nums=20,
                          key_name = str(i))
         ac.put()
         n += 1
 def get(self):
     u1 = URICounter(key_name="1", count=1, counters_total=20)
     u1.put()
     u2 = URICounter(key_name="2", count=2, counters_total=20)
     u2.put()
     u3 = URICounter(key_name="3", count=3, counters_total=20)
     u3.put()
     u4 = URICounter(key_name="4", count=4, counters_total=20)
     u4.put()
     u5 = URICounter(key_name="5", count=5, counters_total=20)
     u5.put()
     u6 = URICounter(key_name="6", count=6, counters_total=20)
     u6.put()
     u7 = URICounter(key_name="7", count=7, counters_total=20)
     u7.put()
     u8 = URICounter(key_name="8", count=8, counters_total=20)
     u8.put()
     u9 = URICounter(key_name="9", count=9, counters_total=20)
     u9.put()
     u10 = URICounter(key_name="10", count=10, counters_total=20)
     u10.put()
     u11 = URICounter(key_name="11", count=11, counters_total=20)
     u11.put()
     u12 = URICounter(key_name="12", count=12, counters_total=20)
     u12.put()
     u13 = URICounter(key_name="13", count=13, counters_total=20)
     u13.put()
     u14 = URICounter(key_name="14", count=14, counters_total=20)
     u14.put()
     u15 = URICounter(key_name="15", count=15, counters_total=20)
     u15.put()
     u16 = URICounter(key_name="16", count=16, counters_total=20)
     u16.put()
     u17 = URICounter(key_name="17", count=17, counters_total=20)
     u17.put()
     u18 = URICounter(key_name="18", count=18, counters_total=20)
     u18.put()
     u19 = URICounter(key_name="19", count=19, counters_total=20)
     u19.put()