Skip to content

Commit

Permalink
docs: fix linting of sample_project (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
danihodovic authored Jun 21, 2024
1 parent 717aff4 commit 5a8597e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sample_deployment/sample_deployment/example/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class HomePageView(TemplateView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
if self.request.user.is_authenticated:
social_account = SocialAccount.objects.filter(
social_account = SocialAccount.objects.filter( # pylint: disable=no-member
user=self.request.user
).first() # pylint: disable=no-member
).first()
if social_account:
context["extra_data"] = social_account.extra_data
return context
Expand All @@ -24,9 +24,9 @@ class SocialAccountMetadataView(TemplateView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
if self.request.user.is_authenticated:
social_account = SocialAccount.objects.filter(
social_account = SocialAccount.objects.filter( # pylint: disable=no-member
user=self.request.user
).first() # pylint: disable=no-member
).first()
if social_account:
context["extra_data"] = social_account.extra_data
json_str = json.dumps(social_account.extra_data, indent=2)
Expand Down

0 comments on commit 5a8597e

Please sign in to comment.