better return system
This commit is contained in:
+2
-3
@@ -3,16 +3,15 @@ from config import *
|
||||
from flask import Flask, redirect
|
||||
from os import environ
|
||||
|
||||
aura = Aura('aura.json')
|
||||
aura = Aura()
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/<id>')
|
||||
def root(id):
|
||||
aura.load()
|
||||
user = aura.get(str(id))
|
||||
if user:
|
||||
user.balance+=120
|
||||
aura.save()
|
||||
aura.update(user)
|
||||
return redirect(INVITE, code=302)
|
||||
|
||||
app.run('127.0.0.1', INVITE_SERVER_PORT)
|
||||
Reference in New Issue
Block a user