Gateway: Minor renames to make PyCharm not gripe

These are related to local variables shadowing globals.
This commit is contained in:
Athanasius 2021-11-04 13:37:17 +00:00
parent c11fa91162
commit 99679d9d5b
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -45,8 +45,8 @@ logger.info('Made logger')
# This socket is used to push market data out to the Announcers over ZeroMQ.
context = zmq.Context()
sender = context.socket(zmq.PUB)
zmq_context = zmq.Context()
sender = zmq_context.socket(zmq.PUB)
validator = Validator()
@ -328,9 +328,9 @@ def stats() -> str:
:return: JSON stats data
"""
stats = stats_collector.getSummary()
stats["version"] = Settings.EDDN_VERSION
return simplejson.dumps(stats)
stats_current = stats_collector.getSummary()
stats_current["version"] = Settings.EDDN_VERSION
return simplejson.dumps(stats_current)
class MalformedUploadError(Exception):