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

Frontend team #327

Merged
merged 3 commits into from Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions ag_data/models.py
Expand Up @@ -53,9 +53,6 @@ class AGSensor(models.Model):
name = models.CharField(max_length=1024, blank=True)
type_id = models.ForeignKey(AGSensorType, null=False, on_delete=models.PROTECT)

# def __str__(self):
# return u"{0}".format(self.name)


class AGMeasurement(models.Model):
"""Stores the information about sensor measurements, including timestamp, event, sensor
Expand Down
2 changes: 1 addition & 1 deletion mercury/grafanaAPI/grafana_api.py
Expand Up @@ -118,7 +118,7 @@ def get_dashboard_by_name(self, event_name):
return None

def get_dashboard_url_by_name(self, name):
name = name.lower().replace(" ", "-")
name = name.strip().lower().replace(" ", "-")

dashboard = self.get_dashboard_by_name(name)
if dashboard:
Expand Down