matiasmenares/Nissboard

View on GitHub
dashboard/api/settings/channels/output.py

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 2 of 2 total issues

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

def get(self):
channels = ChannelOutput.query.all()
channel_schema = ChannelOutputSchema(many=True)
measures = Measure.query.all()
measure_schema = MeasureSchema(many=True)
Severity: Major
Found in dashboard/api/settings/channels/output.py and 1 other location - About 3 hrs to fix
dashboard/api/settings/led_setting.py on lines 7..12

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

out = ChannelOutput(name=params['name'], output_min_val=params['output_min_val'], output_max_val=params['output_max_val'],channel_input=ChannelInput.query.get(params['channel_inputs_id']))
Severity: Major
Found in dashboard/api/settings/channels/output.py and 1 other location - About 2 hrs to fix
dashboard/api/settings/alarm_setting.py on lines 17..17

There are no issues that match your filters.

Category
Status