EGD: Add comment explaining usage of dict.get() and 'or'.

This commit is contained in:
Greg Taylor 2016-04-04 23:36:34 -07:00
parent a0d23bf40c
commit 8b0a136aa0

View file

@ -70,6 +70,8 @@ class EvenniaGameDirClient(object):
'Content-Type': ['application/x-www-form-urlencoded'],
}
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 = {
# Game listing stuff
'game_name': settings.SERVERNAME,