Skip to content

Commit

Permalink
fix stats_views
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitloup committed Sep 25, 2023
1 parent 90251d1 commit c3a4266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pod/video/tests/test_stats_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_stats_view_GET_request_videos(self):

@skipUnless(USE_STATS_VIEW, "Require acitvate URL video_stats_view")
def test_stats_view_GET_request_channel(self):
print("ABCDE " + self.stat_channel_url)
# print("ABCDE " + self.stat_channel_url)
response = self.client.get(self.stat_channel_url)
# Check that the view function is stats_view
self.assertEqual(response.resolver_match.func, stats_view)
Expand Down
3 changes: 2 additions & 1 deletion pod/video/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2227,7 +2227,8 @@ def stats_view(request, slug=None, slug_t=None):
request.method == "POST"
and target == "video"
and (
request.POST.get("password") == videos[0].password
request.POST.get("password")
and request.POST.get("password") == videos[0].password
# and check_password(request.POST.get("password"), videos[0].password)
)
) or (
Expand Down

0 comments on commit c3a4266

Please sign in to comment.