JSON entries are now all lowercase
parent
fd422657d0
commit
9dd91380f1
12
models.py
12
models.py
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue