Similar blocks of code found in 2 locations. Consider refactoring.
class NissanInput(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, unique=True, nullable=False)
consult_id = db.Column(db.Integer, db.ForeignKey('consult.id'), nullable=False)
consult = db.relationship('Consult')
Similar blocks of code found in 2 locations. Consider refactoring.
class ObdInput(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, unique=True, nullable=False)
obd_id = db.Column(db.Integer, db.ForeignKey('obd.id'), nullable=False)
obd = db.relationship('Obd')
Similar blocks of code found in 2 locations. Consider refactoring.
class AnalogInput(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
pin = db.Column(db.String, nullable=False)
voltage_resistance = db.Column(db.Boolean, nullable=False)
Similar blocks of code found in 2 locations. Consider refactoring.
class Dashboard(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
red_line = db.Column(db.String, nullable=False)
yellow_line = db.Column(db.String, nullable=False)
Similar blocks of code found in 2 locations. Consider refactoring.
class Condition(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
condition = db.Column(db.String, nullable=False)
Similar blocks of code found in 2 locations. Consider refactoring.
class VarConfig(db.Model):
id = db.Column(db.Integer, primary_key=True)
var_key = db.Column(db.String, nullable=False)
var_value = db.Column(db.String, nullable=False)
Similar blocks of code found in 2 locations. Consider refactoring.
class MeasureGroup(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
Similar blocks of code found in 2 locations. Consider refactoring.
class AlarmType(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
There are no issues that match your filters.