mirror of
https://github.com/EDCD/EDDN.git
synced 2025-05-06 18:11:04 +03:00
Gateway: Minor renames to make PyCharm not gripe
These are related to local variables shadowing globals.
This commit is contained in:
parent
18d4f13139
commit
dcce3bdc86
@ -45,8 +45,8 @@ logger.info('Made logger')
|
|||||||
|
|
||||||
|
|
||||||
# This socket is used to push market data out to the Announcers over ZeroMQ.
|
# This socket is used to push market data out to the Announcers over ZeroMQ.
|
||||||
context = zmq.Context()
|
zmq_context = zmq.Context()
|
||||||
sender = context.socket(zmq.PUB)
|
sender = zmq_context.socket(zmq.PUB)
|
||||||
|
|
||||||
validator = Validator()
|
validator = Validator()
|
||||||
|
|
||||||
@ -360,9 +360,9 @@ def stats() -> str:
|
|||||||
|
|
||||||
:return: JSON stats data
|
:return: JSON stats data
|
||||||
"""
|
"""
|
||||||
stats = stats_collector.getSummary()
|
stats_current = stats_collector.getSummary()
|
||||||
stats["version"] = Settings.EDDN_VERSION
|
stats_current["version"] = Settings.EDDN_VERSION
|
||||||
return simplejson.dumps(stats)
|
return simplejson.dumps(stats_current)
|
||||||
|
|
||||||
|
|
||||||
class MalformedUploadError(Exception):
|
class MalformedUploadError(Exception):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user