diff --git a/run.py b/run.py index e7c8fbab89ee843de9849d7398c41bf8aa53195f..1232ae6e5f0e6e41f340e6951e754a5b886294a4 100644 --- a/run.py +++ b/run.py @@ -36,7 +36,7 @@ def request_account(json, methods=['GET', 'POST']): room = str(session['uid']) print("Room: {}".format(room)) try: - tasks.celery_create_account.delay(json['username'], json['email'], json['fullname'], json['reason'], session=room) + tasks.celery_create_account.delay(json, session=room ) except Exception as e: print(time.strftime("%m-%d-%Y_%H:%M:%S") + "\tError in account creation: ", e) socketio.emit("Account creation failed", room)