From 084a000842eef864e664579322e3a75cfacd9345 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 8 Jun 2018 20:54:58 +0200 Subject: [PATCH] oops --- db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index a1e0e72d..d8439399 100644 --- a/db.py +++ b/db.py @@ -1,7 +1,7 @@ import datetime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, relationship -from sqlalchemy import Column, BigInteger, Integer, String, DateTime, ForeignKey, Float, Enum, create_engine, UniqueConstraint, PrimaryKeyConstraint, Boolean, or_, LargeBinary, Text +from sqlalchemy import Column, BigInteger, Integer, String, DateTime, ForeignKey, Float, Enum, create_engine, UniqueConstraint, PrimaryKeyConstraint, Boolean, or_, LargeBinary, Text, Date import requests from errors import RequestError, NotFoundError, AlreadyExistingError import re @@ -28,7 +28,7 @@ class Royal(Base): password = Column(LargeBinary) role = Column(String) fiorygi = Column(Integer, default=0) - member_since = Column(DateTime) + member_since = Column(Date) @staticmethod def create(session: Session, username: str):