Ask coding questions
Is the error flask or replit.db, and what can i do to fix it?
You forgot to close the request, remember to always return something!
@app.route('/', methods=['GET', 'POST']) def main(): if request.method == 'POST': email = request.form['email'] print(db.keys) db[email] = "" return "done!" # <--- if request.method == 'GET': return render_template('index.html')
thanks! @Coder100
np! mark as correct answer please :) @isaiah08
When i have it print db.keys it doesn't print anything though. (i moved db.keys to after db[email] @Coder100
oh ok let me look @isaiah08
wait can you invite me i can't see the output @isaiah08
invited @Coder100
thanks @isaiah08
You forgot to close the request, remember to always return something!
thanks! @Coder100
np! mark as correct answer please :) @isaiah08
When i have it print db.keys it doesn't print anything though. (i moved db.keys to after db[email] @Coder100
oh ok let me look @isaiah08
wait can you invite me i can't see the output @isaiah08
invited @Coder100
thanks @isaiah08