Skip to content

Commit

Permalink
Merge pull request #26 from SmartReports/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
PaulMagos authored Nov 11, 2023
2 parents 0cfaa3b + 3048213 commit b3e092b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ tomli==2.0.1
typing_extensions==4.8.0
urllib3==2.0.7
virtualenv==20.24.6
whitenoise==6.6.0
whitenoise==6.6.0
2 changes: 0 additions & 2 deletions smartreport_app/kb_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ def kb_interface(kpi_name, params):
if plot_type == 'line':
response = {
'labels': ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
'data' : {
'datasets': [{
'label': 'massa di filippo',
'data': [65, 59, 50, 40, 30, 20, 10],
'fill': False,
'borderColor': 'rgb(75, 192, 192)',
'tension': 0.1
}]
}
}

return response
Expand Down
5 changes: 3 additions & 2 deletions smartreport_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class UserType(models.TextChoices):
"line",
"bar",
"pie",
"scatter",
"doughnut",
"radar",
)


Expand Down Expand Up @@ -123,7 +124,7 @@ class DashboardLayout(models.Model):
choices=UserType.choices,
)

layout = models.CharField(max_length=2048)
layout = models.JSONField()

def __str__(self):
return self.name
Expand Down
File renamed without changes.

0 comments on commit b3e092b

Please sign in to comment.