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