示例#1
0
文件: cal_events.py 项目: perrys/WSRC
 def get_booking_id(self):
   "Attempt to extract the booking system id from the link. May be a bit fragile"
   params = url_utils.get_url_params(self.link)
   return params['id']
示例#2
0
def extract_id(link):
  if link is None:
    return None
  return url_utils.get_url_params(str(link)).get("id")