Ejemplo n.º 1
0
def confirmEventCreation (eventName):
 masterUrl = request.form ['inputParam']
 x = dbMgr.insertNewEvent (eventName, masterUrl)
 if x == 0:
  x = dbMgr.deletePromise (eventName)
  return jsonify (status = 'True')
 else:
  return jsonify (status = 'False') 
Ejemplo n.º 2
0
def releaseEvent (eventName):
  x = dbMgr.deletePromise(eventName)
  y = dbMgr.deleteEvent(eventName)
  return jsonify (status = 'True')