fix wording and spacing
This commit is contained in:
parent
be7dcf5903
commit
62833a2bd6
@ -13,6 +13,7 @@ def sms():
|
||||
return 'Error retriving last ticket'
|
||||
else:
|
||||
return 'HTTP request method not recogniezed'
|
||||
|
||||
@app.route('/submit', methods=['POST', 'GET'])
|
||||
def submit():
|
||||
if request.method == 'GET':
|
||||
@ -25,9 +26,9 @@ def submit():
|
||||
try:
|
||||
db.session.add(ticket)
|
||||
db.session.commit()
|
||||
return 'Ticket je dodat'
|
||||
return 'Ticket added'
|
||||
except:
|
||||
return 'Dodavanje ticketa nije uspelo'
|
||||
return 'Adding ticket failed'
|
||||
|
||||
else:
|
||||
return 'HTTP request method not recogniezed'
|
||||
|
Loading…
Reference in New Issue
Block a user