Skip to content
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

generate report for a single course #2

Merged

Conversation

maneeshatejani1
Copy link
Collaborator

@maneeshatejani1 maneeshatejani1 commented Sep 7, 2021

generate course report for selected course

@maneeshatejani1 maneeshatejani1 force-pushed the maneesha/generate-report-for-single-course branch from 5e444c6 to 93f3523 Compare September 7, 2021 12:34
@@ -52,6 +52,14 @@
</a>
</div>
% endif
% if user.is_staff:
<div class="mobile-nav-item hidden-mobile nav-item nav-tab">
<a class="tab-nav-link discover-new-link" href="/admin_dashboard"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly, use reverse to make url

@@ -0,0 +1,11 @@

"""Common settings for Admin Dashboard"""
Copy link

@mumarkhan999 mumarkhan999 Sep 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep the things consistent, kindly add docstrings in other newly added python files as well.

"""
My docstring here.
"""

And follow this pattern

@@ -0,0 +1,79 @@
(function() {
'use strict';
var getCookie, ReportDownloads;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly try to use let in place of var as much as possible to keep the scope of variables limited.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, taken note


<br><br><br>

<p><input type="button" name="list-profiles-csv" value="${_("Download profile information as a CSV")}" data-endpoint="${ section_data['key']['get_students_features_url'] }" data-csv="true"></p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly, indent this to increase the readability

<p>
    <input ....>
        ....
    </input>
</p>

@ensure_csrf_cookie
@cache_if_anonymous()
def course_reports(request):
courses_list = []

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not commenting anything on this function as I assume you are using it just for testing purposes.

@maneeshatejani1 maneeshatejani1 force-pushed the maneesha/generate-report-for-single-course branch from d8091cf to 5e0ed9e Compare September 9, 2021 09:12
@maneeshatejani1 maneeshatejani1 merged commit 62ee97d into develop Sep 9, 2021
tehreem-sadat pushed a commit that referenced this pull request Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants