# HG changeset patch # User Dennis Fink # Date 2015-10-20 01:39:19 # Node ID e1cd00f7b72f6d1daf9e7910bdb6eafb20e45747 # Parent 34e77db5834498dd0062f2873cc5f215db3ef7e4 Fix bandwidth in api. There was a typo diff --git a/ennstatus/api/model.py b/ennstatus/api/model.py --- a/ennstatus/api/model.py +++ b/ennstatus/api/model.py @@ -96,7 +96,7 @@ class Server: self.fingerprint = kwargs['fingerprint'] self.last_updated = kwargs['last_updated'] self.country = kwargs['country'] - self.bandwith = kwargs.get('bandwith') + self.bandwidth = kwargs.get('bandwidth') if self.type == 'bridge': self.obfs = kwargs.get('obfs') diff --git a/ennstatus/api/schema/server.json b/ennstatus/api/schema/server.json --- a/ennstatus/api/schema/server.json +++ b/ennstatus/api/schema/server.json @@ -91,7 +91,7 @@ "type": "string", "format": "date-time" }, - "bandwith": { + "bandwidth": { "type": [ "string", "null"