Skip to content

Commit

Permalink
fix: Limited accuracy of floating pointing numbers to 2 places.
Browse files Browse the repository at this point in the history
  • Loading branch information
saleem-latif authored and UsamaSadiq committed Feb 25, 2025
1 parent dd97d69 commit 09557ec
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Unreleased
---------------------
* feat: get groups data from membership endpoint using enterprise client.

[10.8.1] - 2025-02-20
---------------------
* fix: Limited accuracy of floating pointing numbers to 2 places.

[10.8.1] - 2025-02-20
---------------------
* feat: Added 2 new columns in module performance report model and exposed them via associated REST API.
Expand Down
2 changes: 1 addition & 1 deletion enterprise_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Enterprise data api application. This Django app exposes API endpoints used by enterprises.
"""

__version__ = "10.9.0"
__version__ = "10.9.1"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.15 on 2025-02-25 08:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('enterprise_data', '0047_enterpriseexecedlcmoduleperformance_avg_after_lo_score_and_more'),
]

operations = [
migrations.AlterField(
model_name='enterpriseexecedlcmoduleperformance',
name='avg_after_lo_score',
field=models.DecimalField(decimal_places=2, max_digits=38, null=True),
),
migrations.AlterField(
model_name='enterpriseexecedlcmoduleperformance',
name='avg_before_lo_score',
field=models.DecimalField(decimal_places=2, max_digits=38, null=True),
),
]
4 changes: 2 additions & 2 deletions enterprise_data/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ class Meta:
discussion_forum_activities_total_count = models.PositiveIntegerField(null=True)
pass_grade = models.DecimalField(max_digits=38, decimal_places=2, null=True)
question_name = models.CharField(max_length=500, null=True)
avg_before_lo_score = models.DecimalField(max_digits=38, decimal_places=6, null=True)
avg_after_lo_score = models.DecimalField(max_digits=38, decimal_places=6, null=True)
avg_before_lo_score = models.DecimalField(max_digits=38, decimal_places=2, null=True)
avg_after_lo_score = models.DecimalField(max_digits=38, decimal_places=2, null=True)

def __str__(self):
"""
Expand Down

0 comments on commit 09557ec

Please sign in to comment.