mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
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'],
|
||||
}
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue