JSON entries are now all lowercase

doc_update
Joey Hines 2019-01-06 15:24:47 -06:00
parent fd422657d0
commit 9dd91380f1
1 changed files with 6 additions and 6 deletions

View File

@ -26,9 +26,9 @@ class Player(models.Model):
@property @property
def json(self): def json(self):
return {"Name": self.name, return {"name": self.name,
"MC UUID": self.mc_uuid, "mc_uuid": self.mc_uuid,
"Discord UUID": self.discord_uuid "discord_uuid": self.discord_uuid
} }
def __str__(self): def __str__(self):
@ -52,8 +52,8 @@ class Location(models.Model):
@property @property
def json(self): def json(self):
return {"Type": self.__class__.__name__, return {"type": self.__class__.__name__,
"Name": self.name, "name": self.name,
"x_coord": self.x_coord, "x_coord": self.x_coord,
"z_coord": self.z_coord, "z_coord": self.z_coord,
"dimension": self.dimension, "dimension": self.dimension,
@ -119,7 +119,7 @@ class Tunnel(models.Model):
@property @property
def json(self): def json(self):
return {"Location_name": self.location.name, return {"location_name": self.location.name,
"tunnel_direction": self.tunnel_direction, "tunnel_direction": self.tunnel_direction,
"tunnel_number": self.tunnel_number "tunnel_number": self.tunnel_number
} }