Skip to content

Commit

Permalink
fix update manga settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Crossoufire committed Feb 7, 2025
1 parent adfd3ee commit 01c9399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/cli/commands/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def add_manga_settings():

users = User.query.all()
for user in users:
if not user.get_media_setting(MediaType.MANGA):
manga_setting = [setting for setting in user.settings if setting.media_type == MediaType.MANGA]
if not manga_setting:
new_user_media_settings = UserMediaSettings(
user_id=user.id,
media_type=MediaType.MANGA,
Expand Down

0 comments on commit 01c9399

Please sign in to comment.