Centralize version string getting. Still trying to work out how we should handle automatic version increments so we don't have to modify files all the time. Remove version file from repo (should only be a thing when building binaries)
This commit is contained in:
@@ -99,7 +99,7 @@ class APIConnection(object):
|
||||
if additional_headers is None:
|
||||
additional_headers = {}
|
||||
if user_agent is None:
|
||||
user_agent = "pyfa/{0} ({1})".format(config.version, config.tag)
|
||||
user_agent = "pyfa/{0}".format(config.getVersion)
|
||||
session.headers.update({
|
||||
"User-Agent": user_agent,
|
||||
"Accept": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user