-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/double requests #8959
Fix/double requests #8959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking awesome @octavioamu!! 🚀
app/dashboard/tasks.py
Outdated
@@ -294,6 +294,7 @@ def increment_view_count(self, pks, content_type, user_id, view_type, retry: boo | |||
:param view_type: | |||
:return: | |||
""" | |||
print(pks, content_type, user_id, view_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider: dropping this print
app/grants/views.py
Outdated
@@ -595,6 +595,11 @@ def get_grants(request): | |||
del grant_json['weighted_risk_score'] | |||
grants_array.append(grant_json) | |||
|
|||
pks = list([grant.pk for grant in grants]) | |||
if len(pks): | |||
print(request.user) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one
app/grants/views.py
Outdated
@@ -867,6 +872,7 @@ def grants_landing(request): | |||
|
|||
def grants_by_grant_type(request, grant_type): | |||
"""Handle grants explorer.""" | |||
print(request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one
Could we remove the print and move this to master as opposed to stable ? |
Allll done |
Description
remove query on view load of grant explorer, instead just use the js request for the api.
Refers/Fixes
Fixes: #8846
Testing