Merge pull request #6 from AnthorNet/master

Default gateway settings now include a /test variant of v2 commodity schema.
This commit is contained in:
James Muscat 2015-04-22 15:38:05 +01:00
commit 13e5cb4360
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
"systemName": "Eranin",
"stationName": "Azeban Orbital",
"timestamp": "2014-11-17T12:34:56+00:00"
"commodities" : [
"commodities": [
{
"name": "Gold",
"buyPrice": 1024,

View File

@ -36,7 +36,8 @@ class _Settings(object):
GATEWAY_JSON_SCHEMAS = {
"http://schemas.elite-markets.net/eddn/commodity/1": "schemas/commodity-v0.1.json",
"http://schemas.elite-markets.net/eddn/commodity/1/test": "schemas/commodity-v0.1.json",
"http://schemas.elite-markets.net/eddn/commodity/2": "schemas/commodity-v2.0-draft.json"
"http://schemas.elite-markets.net/eddn/commodity/2": "schemas/commodity-v2.0-draft.json",
"http://schemas.elite-markets.net/eddn/commodity/2/test": "schemas/commodity-v2.0-draft.json"
}
def loadFrom(self, fileName):