EGD: Add comment explaining usage of dict.get() and 'or'.
This commit is contained in:
parent
a0d23bf40c
commit
8b0a136aa0
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ class EvenniaGameDirClient(object):
|
||||||
'Content-Type': ['application/x-www-form-urlencoded'],
|
'Content-Type': ['application/x-www-form-urlencoded'],
|
||||||
}
|
}
|
||||||
gd_config = settings.GAME_DIRECTORY_LISTING
|
gd_config = settings.GAME_DIRECTORY_LISTING
|
||||||
|
# We are using `or` statements below with dict.get() to avoid sending
|
||||||
|
# stringified 'None' values to the server.
|
||||||
values = {
|
values = {
|
||||||
# Game listing stuff
|
# Game listing stuff
|
||||||
'game_name': settings.SERVERNAME,
|
'game_name': settings.SERVERNAME,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue