Skip to content

Commit 1c7432f

Browse files
committed
Fixed APIConnection.call by bringing back the old QUERY_TEMPLATE. (It originally moved to APICall)
APIConnection is still obsolete and will be eventually removed, after everything is converted to the new format.
1 parent a76580d commit 1c7432f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

steamapi/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def __call__(self, method=GET, **kwargs):
123123

124124
@Singleton
125125
class APIConnection(object):
126+
QUERY_DOMAIN = "http://api.steampowered.com"
127+
# Use double curly-braces to tell Python that these variables shouldn't be expanded yet.
128+
QUERY_TEMPLATE = "{domain}/{{interface}}/{{command}}/{{version}}/".format(domain=QUERY_DOMAIN)
126129

127130
def __init__(self, api_key=None, settings={}):
128131
"""

0 commit comments

Comments
 (0)