Compare commits

..

3 Commits

Author SHA1 Message Date
Pavel_Durov
9f95d004c1 Merge branch '0.1.0-dev' of https://git.vdk2ch.ru/Pavel_Durov/python_bot into 0.1.0-dev
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-22 18:56:58 +03:00
Pavel_Durov
cfab19f4d4 cahnge data new year 2024 2023-06-22 18:55:27 +03:00
4229624763 Мелкофиксы для подключения БД
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-22 17:37:57 +10:00
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import datetime
@dp.message_handler(commands=["time"])
async def send_time(message: types.Message):
new_year = datetime.datetime(2022, 12, 31) # дата нового года
new_year = datetime.datetime(2024, 12, 31) # дата нового года
ct = datetime.datetime.now() # дата/время
cd = datetime.datetime.now().strftime("%d/%m/%Y") # дата (д,м,г)
ct1 = ct+datetime.timedelta(hours=15) # +14 часов от сервера

View File

@@ -19,7 +19,7 @@ class User(Base):
user_fullname = Column(String)
date_updated = (Column(DateTime))
dick_requests = relationship("DickRequest", back_populates="user")
dicks = relationship("UserDick", back_populates="user")
user_dicks = relationship("UserDick", back_populates="user")
class UserDick(Base):
@@ -29,7 +29,7 @@ class UserDick(Base):
user_id = Column(Integer, ForeignKey("users.user_id"))
dick_size = (Column(Integer))
chat_id = Column(BIGINT)
user = relationship("User", back_populates="dick_requests")
user = relationship("User", back_populates="user_dicks")
class DickRequest(Base):