Gateway: Minor renames to make PyCharm not gripe

These are related to local variables shadowing globals.
This commit is contained in:
Athanasius committed 2022-08-18 15:17:58 +01:00
1 parent c11fa91162
commit 99679d9d5b
1 file changed
+5 -5
+5 -5
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):