diff --git a/app.py b/app.py index 8505bd4..91ff654 100644 --- a/app.py +++ b/app.py @@ -22,7 +22,6 @@ def create_app(): mongo = PyMongo(app) login_manager = LoginManager(app) login_manager.session_protection = "strong" -#form = PinForm() class User(UserMixin): def __init__(self, user_data): @@ -76,11 +75,7 @@ def create_app(): pins = mongo.db.pins.find() return render_template('index.html', pins=pins, form=form) else: - #@app.route('/add_pin') - #def add_pin(): form = request.form - # if form.validate_on_submit(): - #description = form.description.data try: photo = request.files["photo"] except Exception as e: @@ -92,7 +87,6 @@ def create_app(): photo.save(filepath) pin = { - #'description': description, 'time': datetime.now(), 'photo': filepath, 'lat': request.form['lat'], @@ -105,13 +99,6 @@ def create_app(): return redirect(url_for('index')) else: return allowed_file(photo.filename), 404 - #render_template('index.html', pins=pins, form=form) - #except Exception as e: - # flash(f'An error occurred: {e}') - #return redirect(url_for('add_pin')) - #else: - # flash('Invalid file type. Only images are allowed.') - #return render_template('index.html', form=form) @app.route('/quienes') def quienes(): return render_template('quienes.html') diff --git a/templates/base.html b/templates/base.html index ad8ee4f..2a7a460 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,6 @@