Compare commits
2 Commits
ce795b02e6
...
d10f32519e
Author | SHA1 | Date |
---|---|---|
|
d10f32519e | |
|
00a5eed746 |
|
@ -4,4 +4,4 @@
|
|||
|
||||
__pycache__
|
||||
**/__pycache__
|
||||
static
|
||||
static/temp/
|
|
@ -22,7 +22,12 @@ async def insert_group_chat(supervisor: str, members: list[str]) -> GroupChat:
|
|||
try:
|
||||
group_chat_res = await session.scalars(
|
||||
insert(GroupChat)
|
||||
.values(id=id, name=name, supervisor=supervisor, members=members)
|
||||
.values(
|
||||
id=id,
|
||||
name=name,
|
||||
supervisor=supervisor,
|
||||
members=members,
|
||||
)
|
||||
.returning(GroupChat)
|
||||
)
|
||||
contact_res: ScalarResult[Contact] = await session.scalars(
|
||||
|
|
|
@ -54,7 +54,9 @@ class UserProfile(Base):
|
|||
location: Mapped[str] = mapped_column(String, nullable=True)
|
||||
status: Mapped[str] = mapped_column(String, nullable=True)
|
||||
sign: Mapped[str] = mapped_column(String, nullable=True)
|
||||
avatar: Mapped[str] = mapped_column(String, nullable=True, default="user.png")
|
||||
avatar: Mapped[str] = mapped_column(
|
||||
String, nullable=True, default="default_user_avatar.png"
|
||||
)
|
||||
user_id: Mapped[str] = mapped_column(
|
||||
ForeignKey("user_account.id", ondelete="CASCADE")
|
||||
)
|
||||
|
@ -146,7 +148,7 @@ class GroupChat(Base):
|
|||
introduction: Mapped[str] = mapped_column(String(100), default="")
|
||||
tags: Mapped[list[str]] = mapped_column(ARRAY(String), default=[])
|
||||
noticeboard: Mapped[list[dict]] = mapped_column(JSONB, default=[])
|
||||
avatar: Mapped[str] = mapped_column(String, default="Logo_light.png")
|
||||
avatar: Mapped[str] = mapped_column(String, default="default_group_avatar.png")
|
||||
created_at: Mapped[datetime] = mapped_column(
|
||||
default=datetime.now, onupdate=datetime.now
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ from src.database.redis_api import redis_server
|
|||
|
||||
host = "smtp.163.com"
|
||||
username = "together_app@163.com"
|
||||
password = "AGBEYAOHPTAHHMKK"
|
||||
password = "ZHHLUQSTDTQSBEQZ"
|
||||
|
||||
smtp = SMTP(host=host)
|
||||
smtp.ehlo()
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
After Width: | Height: | Size: 70 KiB |
Binary file not shown.
After Width: | Height: | Size: 107 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.6 MiB |
Loading…
Reference in New Issue