Skip to content

Commit

Permalink
fix: fix fix_userwebsite command :)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Nov 26, 2024
1 parent 800c41c commit edf5fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/accounts/management/commands/fix_userwebsites.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def handle(self, *args, **options):
def do():
for user_website in user_websites:
user = user_website.user
if is_valid_uuid(user.username):
if is_valid_uuid(user.username) or user.origin == 'SHAD':
if UserWebsite.objects.filter(user=user, website='filmbazi').exists():
user_website.delete()
else:
Expand Down

0 comments on commit edf5fc6

Please sign in to comment.