matiasmenares/Nissboard

View on GitHub
dashboard/api/settings/water_setting.py

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Similar blocks of code found in 3 locations. Consider refactoring.
Open

def get(self):
cursor = self.database.con.cursor()
cursor.execute("SELECT * FROM sensors WHERE name = 'Water'")
return {'Water': cursor.fetchone()}
Severity: Major
Found in dashboard/api/settings/water_setting.py and 2 other locations - About 1 hr to fix
dashboard/api/measure_group.py on lines 10..13
dashboard/api/settings/channels/analog.py on lines 13..16

There are no issues that match your filters.

Category
Status