コード例 #1
0
ファイル: admin.py プロジェクト: pobot/POBOT_Junior_Cup
 def post(self):
     times = [
         parse_hhmm_time(self.get_argument(name)) for name in self.FORM_FIELDS
     ]
     self.tournament.planning = times
     self.application.save_tournament()
コード例 #2
0
ファイル: api.py プロジェクト: pobot/POBOT_Junior_Cup
 def put(self):
     data = json.loads(self.request.body)
     self.tournament.planning = [
         parse_hhmm_time(hhmm) for hhmm in data
     ]
     self.application.save_tournament()