Skip to content

Commit

Permalink
fix: 通知海报出错。
Browse files Browse the repository at this point in the history
  • Loading branch information
EstrellaXD committed Sep 10, 2023
1 parent cfddecc commit 746417a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion backend/src/module/manager/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def subscribe_season(data: Bangumi):
return engine.download_bangumi(data)



def eps_complete():
with RSSEngine() as engine:
datas = engine.bangumi.not_complete()
Expand Down
6 changes: 1 addition & 5 deletions backend/src/module/notification/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ def __init__(self):
def _get_poster(notify: Notification):
with Database() as db:
poster_path = db.bangumi.match_poster(notify.official_title)
if poster_path:
poster_link = "https://mikanani.me" + poster_path
else:
poster_link = "https://mikanani.me"
notify.poster_path = poster_link
notify.poster_path = poster_path

def send_msg(self, notify: Notification) -> bool:
self._get_poster(notify)
Expand Down

0 comments on commit 746417a

Please sign in to comment.