diff --git a/ogn/model/aircraft_beacon.py b/ogn/model/aircraft_beacon.py index 5894995..ef578c2 100644 --- a/ogn/model/aircraft_beacon.py +++ b/ogn/model/aircraft_beacon.py @@ -52,17 +52,6 @@ class AircraftBeacon(Beacon): Index('ix_aircraft_beacon_receiver_id_receiver_name', 'receiver_id', 'receiver_name') Index('ix_aircraft_beacon_device_id_address', 'device_id', 'address') - def __init__(self, receiver_name, address, timestamp, aircraft_type, stealth, error_count, software_version, hardware_version, real_address): - self.receiver_name - self.address = address - self.timestamp = timestamp - self.aircraft_type = aircraft_type - self.stealth = stealth - self.error_count = error_count - self.software_version = software_version - self.hardware_version = hardware_version - self.real_address = real_address - def __repr__(self): return "" % ( self.address_type, diff --git a/ogn/model/airport.py b/ogn/model/airport.py index 825f761..bd5ebe0 100644 --- a/ogn/model/airport.py +++ b/ogn/model/airport.py @@ -25,9 +25,6 @@ class Airport(Base): # Relations takeoff_landings = relationship('TakeoffLanding') - def __init__(self, name): - self.name = name - def __repr__(self): return "" % ( self.name, diff --git a/ogn/model/device.py b/ogn/model/device.py index 797e5e0..8bbe02b 100644 --- a/ogn/model/device.py +++ b/ogn/model/device.py @@ -20,9 +20,6 @@ class Device(Base): # Relations aircraft_beacons = relationship('AircraftBeacon') - def __init__(self, address): - self.address = address - def __repr__(self): return "" % ( self.address, diff --git a/ogn/model/receiver_beacon.py b/ogn/model/receiver_beacon.py index d271344..f9a51e2 100644 --- a/ogn/model/receiver_beacon.py +++ b/ogn/model/receiver_beacon.py @@ -40,13 +40,6 @@ class ReceiverBeacon(Beacon): # Multi-column indices Index('ix_receiver_beacon_receiver_id_name', 'receiver_id', 'name') - def __init__(self, name, timestamp, altitude, version, platform): - self.name = name - self.timestamp = timestamp - self.altitude = altitude - self.version = version - self.platform = platform - def __repr__(self): return "" % ( self.version, diff --git a/ogn/model/takeoff_landing.py b/ogn/model/takeoff_landing.py index bdf9adb..2b0d595 100644 --- a/ogn/model/takeoff_landing.py +++ b/ogn/model/takeoff_landing.py @@ -19,9 +19,3 @@ class TakeoffLanding(Base): device_id = Column(Integer, ForeignKey('device.id', ondelete='SET NULL'), index=True) device = relationship('Device', foreign_keys=[device_id]) - - def __init__(self, is_takeoff, timestamp, airport_id, device_id): - self.is_takeoff = is_takeoff - self.timestamp = timestamp - self.airport_id = airport_id - self.device_id = device_id