Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask_wtf import FlaskForm
- from wtforms import StringField, SubmitField, DateTimeField
- class invForm(FlaskForm):
- bleh = time.gmtime()
- getepoch = calendar.timegm(time.strptime(
- f'{bleh.tm_year}-{bleh.tm_mon}-{bleh.tm_mday}'
- f'{bleh.tm_hour}:{bleh.tm_min}:{bleh.tm_sec}',
- '%Y-%m-%d%H:%M:%S'))
- invidLabel = StringField('Item ID: ')
- invId = DateTimeField(getepoch)
- invName = StringField('Name: ')
- invQty = StringField('Quantity: ')
- invLoc = StringField('Location: ')
- invSubmit = SubmitField('Add')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement