matiasmenares/Nissboard

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

Summary

Maintainability
B
6 hrs
Test Coverage

Showing 1 of 1 total issue

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

def get(self):
dashboards = Dashboard.query.all()
dashboard_schema = DashboardSchema(many=True)
channels = ChannelOutput.query.all()
channel_schema = ChannelOutputSchema(many=True)
Severity: Major
Found in dashboard/api/settings/kinek_setting.py and 2 other locations - About 6 hrs to fix
dashboard/api/dashboard.py on lines 11..18
dashboard/api/settings/alarm_setting.py on lines 7..14
Category
Status