commit ded762d0b490ffaf396eea52400f4158985bedda
parent dc8161b2d8f3d5d6df75f81513ad50b0145f1c8e
Author: Friedel Schön <[email protected]>
Date: Tue, 7 Jun 2022 10:29:15 +0200
formatting + remove unnecessary imports
Diffstat:
3 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/server/forms.py b/server/forms.py
@@ -1,8 +1,6 @@
-import re
-from tokenize import String
from flask_wtf import FlaskForm
from flask_wtf.file import FileAllowed, FileField
-from wtforms import BooleanField, HiddenField, PasswordField, StringField, SubmitField, IntegerField, SelectField
+from wtforms import BooleanField, PasswordField, StringField, SubmitField, IntegerField, SelectField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
from .models import User
diff --git a/server/models.py b/server/models.py
@@ -1,6 +1,4 @@
-from email.policy import default
from enum import Enum
-import json
from flask_login import UserMixin
from .app import db, login_manager
diff --git a/server/timer.py b/server/timer.py
@@ -1,14 +0,0 @@
-import time, threading
-
-def repeat_timer(sec):
- def wrapper(func):
- def thread():
- while True:
- time.sleep(sec)
- func()
-
- thd = threading.Thread(target=thread)
- thd.start()
-
- return func
- return wrapper