mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 05:14:00 +02:00
remove 'received' words
This commit is contained in:
parent
8eb6e0666c
commit
f58ac122d0
1 changed files with 4 additions and 4 deletions
|
@ -13,15 +13,15 @@ def index():
|
||||||
@app.route('/code/<code>')
|
@app.route('/code/<code>')
|
||||||
def code(code):
|
def code(code):
|
||||||
if code == 'R0000':
|
if code == 'R0000':
|
||||||
return 'RESET received'
|
return 'RESET'
|
||||||
if match('^\C[0-9]{4}$', code):
|
if match('^\C[0-9]{4}$', code):
|
||||||
amount = int(code[1:])
|
amount = int(code[1:])
|
||||||
return 'CREDIT %d received' % amount
|
return 'CREDIT %d' % amount
|
||||||
if match('^U[0-9]{4}$', code):
|
if match('^U[0-9]{4}$', code):
|
||||||
userid = int(code[1:])
|
userid = int(code[1:])
|
||||||
return 'USER %s received' % userid
|
return 'USER %s' % userid
|
||||||
if match('^[0-9]+$', code):
|
if match('^[0-9]+$', code):
|
||||||
return 'ITEM %s received' % code
|
return 'ITEM %s' % code
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|
||||||
@app.route('/admin/')
|
@app.route('/admin/')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue