Skip to content

Commit

Permalink
Auto update media to host when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
MujyKun committed Aug 13, 2021
1 parent 4bdfe0f commit 1c43186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion IreneUtility/s_sql/s_groupmembers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from . import self


IMAGE_COLUMNS = ["thumbnail", "banner"]
DATE_COLUMNS = ["birthdate", "debutdate", "disbanddate"]


Expand Down
3 changes: 3 additions & 0 deletions IreneUtility/util/u_groupmembers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,9 @@ async def update_info(self, obj_id, column, content, group=False):

obj.set_attribute(column, content)

if column.lower() in self.ex.sql.s_groupmembers.IMAGE_COLUMNS:
await obj.send_images_to_host()

await self.ex.sql.s_groupmembers.update_info(obj_id, column, date if date else content, group)

return obj
Expand Down

0 comments on commit 1c43186

Please sign in to comment.