aboutsummaryrefslogtreecommitdiff
path: root/gerboweb/gerboweb.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2019-03-27 23:08:20 +0900
committerjaseg <git@jaseg.net>2019-03-27 23:08:20 +0900
commitdabe1d8809348cf82c82b9a871f0509e1403a8cd (patch)
tree2329a7525124028208f8df782b2eced9fbfe7625 /gerboweb/gerboweb.py
parent874adce8f4efdda653c1e60d5b353a3bc816af93 (diff)
downloadgerbolyze-dabe1d8809348cf82c82b9a871f0509e1403a8cd.tar.gz
gerbolyze-dabe1d8809348cf82c82b9a871f0509e1403a8cd.tar.bz2
gerbolyze-dabe1d8809348cf82c82b9a871f0509e1403a8cd.zip
Deployment to digitalocean works
Diffstat (limited to 'gerboweb/gerboweb.py')
-rw-r--r--gerboweb/gerboweb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerboweb/gerboweb.py b/gerboweb/gerboweb.py
index bf2921a..6b579f0 100644
--- a/gerboweb/gerboweb.py
+++ b/gerboweb/gerboweb.py
@@ -14,7 +14,7 @@ import sqlite3
from flask import Flask, url_for, redirect, session, make_response, render_template, request, send_file, abort
from flask_wtf import FlaskForm
-from flask_wtf.file import FileField
+from flask_wtf.file import FileField, FileRequired
from wtforms.fields import RadioField
from wtforms.validators import DataRequired
from werkzeug.utils import secure_filename
@@ -28,7 +28,7 @@ class UploadForm(FlaskForm):
upload_file = FileField(validators=[DataRequired()])
class OverlayForm(UploadForm):
- upload_file = FileField(validators=[DataRequired()])
+ upload_file = FileField(validators=[FileRequired()])
side = RadioField('Side', choices=[('top', 'Top'), ('bottom', 'Bottom')])
class ResetForm(FlaskForm):