Fixed weight ignore issue on grade calculation#242
Open
amir-qayyum-khan wants to merge 1 commit intomasterfrom
Open
Fixed weight ignore issue on grade calculation#242amir-qayyum-khan wants to merge 1 commit intomasterfrom
amir-qayyum-khan wants to merge 1 commit intomasterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #242 +/- ##
==========================================
+ Coverage 92.4% 92.46% +0.05%
==========================================
Files 15 15
Lines 1594 1606 +12
Branches 101 101
==========================================
+ Hits 1473 1485 +12
Misses 111 111
Partials 10 10
Continue to review full report at Codecov.
|
Author
|
fixed atomic block issue in Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py", line 973, in delete
collector.collect([self], keep_parents=keep_parents)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/deletion.py", line 222, in collect
elif sub_objs:
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 258, in __nonzero__
return type(self).__bool__(self)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 254, in __bool__
self._fetch_all()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 1118, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 53, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 899, in execute_sql
raise original_exception
TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block. |
d812e38 to
1cb2c26
Compare
Member
|
@amir-qayyum-khan can you rebase this and address the merge conflicts? I've been sitting on this for a while because I'm not certain what the actual requirement is. Once it's rebased I'll run it by someone from the MITx team to get their input. |
89e88be to
d4b632f
Compare
Author
|
rebased @pdpinch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
fixes #95
Background:
What's this PR do?
In this PR i am using weight to calculate grade percentage. Applied this logic on two points. Images are attached to demonstrate.
How should this be manually tested?
@pdpinch
Screenshots (if appropriate)