diff --git a/suchwow/routes/post.py b/suchwow/routes/post.py index aceea1f..3540549 100644 --- a/suchwow/routes/post.py +++ b/suchwow/routes/post.py @@ -87,6 +87,10 @@ def create(): try: wallet = wownero.Wallet() account_index = wallet.new_account() + in_use = Post.select().where(Post.account_index == account_index).first() + if in_use: + flash("Suchwow wallet is fucked up! Try again later.", "is-danger") + return redirect(request.url) except: flash("Suchwow wallet is fucked up! Try again later.", "is-danger") return redirect(request.url)