sqlite - Python Datetime error -
this part of code.
my imports:
import jinja2 jinja2 import evalcontextfilter, markup, escape import os import hashlib import logging import json import re import webapp2 string import * import random import hmac import xlwt datetime import datetime, date, time, timedelta import time tiempo models import * one of models:
class combustible(sqlitemodel): cini = datetimefield() cfin = datetimefield() and when execute line of code:
combus=combustible.select().where(combustible.cfin.year==3000).count() i error:
attributeerror: 'datetimefield' object has no attribute 'year' i use peewee orm.
what driving me crazy doesn't work in 1 computer works fine in another. python , lib versions same.
anybody can me?
i double , triple-check peewee versions.
Comments
Post a Comment