Commits

weakdancer  committed c31d244

xiao

  • Participants
  • Parent commits 08f699c

Comments (0)

Files changed (2)

 			user=USER[0]
 			NowTerm=db.get(db.get(user).nowterm)
 			KCB = kcb()
-			KCB.name=cgi.escape(self.request.get('additem')).replace(' ','')
+			KCB.name=cgi.escape(self.request.get('additem')).replace(' ','-')
 			KCB.term = NowTerm
 			KCB.type=True
 			KCB.settime=getCNnow()
 		NEWTERM=kcbterm()
 		NEWTERM.name=self.request.get('termname')
 		NEWTERM.user=user
+		NEWTERM.weight=999
 		NEWTERM.put()
 		NOWUSER=db.get(user)
 		NOWUSER.nowterm=str(NEWTERM.key())

File tpl/bingo.html

 
 {% for TERM in TERMS %}
 {% if TERM.weight %}
+
 <hr class="b" />
 <h1>{{TERM.name}}</h1>
 
 {% endif %}
 <hr class="l" />
 {% endfor %}
+
 {% endif %}
 
 
+
 {% endfor %}
 </div>