23 lines
786 B
Python
23 lines
786 B
Python
from app import app
|
|
|
|
# from flask import render_template
|
|
# from flask_sqlalchemy import SQLAlchemy
|
|
# from sqlalchemy import func
|
|
# from flask_wtf import FlaskForm
|
|
# from wtforms import Form, RadioField, SubmitField, HiddenField
|
|
|
|
# db = SQLAlchemy(app)
|
|
|
|
# class Word(db.Model):
|
|
# id = db.Column(db.Integer, primary_key=True)
|
|
# dictionarium = db.Column(db.String, unique=True, nullable=False)
|
|
# coniugatio = db.Column(db.Integer, unique=False, nullable=False)
|
|
|
|
# def __repr__(self):
|
|
# return '%r; %d conjugation' % (self.dictionarium, self.coniugatio)
|
|
|
|
# class ConjugatioAnswer(FlaskForm):
|
|
# radio = RadioField('', choices=[(1, 'Prima'), (2, 'Secunda'), (3, 'Tertia'), (4, 'Quarta')])
|
|
# word = HiddenField()
|
|
# submit = SubmitField('Check')
|
|
# next_word = SubmitField('Next word') |