mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
fixup variable names
This commit is contained in:
@ -17,9 +17,9 @@ Schema:
|
|||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"version": string,
|
"version": string,
|
||||||
"verbosity": integer,
|
"verbosity": integer,
|
||||||
"ratelimit": integer
|
"ratelimit": integer
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ def parse(data: str, raw: bool = False, quiet: bool = False):
|
|||||||
if jc.utils.has_data(data):
|
if jc.utils.has_data(data):
|
||||||
|
|
||||||
itrparse = False
|
itrparse = False
|
||||||
itr = {}
|
itr: Dict = {}
|
||||||
|
|
||||||
for line in filter(None, data.splitlines()):
|
for line in filter(None, data.splitlines()):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
@ -158,14 +158,14 @@ def parse(data: str, raw: bool = False, quiet: bool = False):
|
|||||||
itrparse = True
|
itrparse = True
|
||||||
itr = {}
|
itr = {}
|
||||||
linedata = line.split(':', maxsplit=1)
|
linedata = line.split(':', maxsplit=1)
|
||||||
# active = linedata[1].strip() # This isn't doing anything
|
active = linedata[1].strip()
|
||||||
# cookies.update({'active': active}) # This isn't doing anything
|
itr.update({'active': active})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if line.startswith('staging'):
|
if line.startswith('staging'):
|
||||||
linedata = line.split(':', maxsplit=1)
|
linedata = line.split(':', maxsplit=1)
|
||||||
# staging = linedata[1].strip() # This isn't doing anything
|
staging = linedata[1].strip()
|
||||||
# cookies.update({'staging': staging}) # This isn't doing anything
|
itr.update({'staging': staging})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# print_tsig
|
# print_tsig
|
||||||
@ -185,8 +185,8 @@ def parse(data: str, raw: bool = False, quiet: bool = False):
|
|||||||
|
|
||||||
# zonestatus
|
# zonestatus
|
||||||
if line.startswith('zone:'):
|
if line.startswith('zone:'):
|
||||||
zonename = dict()
|
zonename: Dict = dict()
|
||||||
zstatus = dict()
|
zstatus: Dict = dict()
|
||||||
linedata = line.split(':\t', maxsplit=1)
|
linedata = line.split(':\t', maxsplit=1)
|
||||||
zone = linedata[1]
|
zone = linedata[1]
|
||||||
zonename.update({'zone': zone})
|
zonename.update({'zone': zone})
|
||||||
|
Reference in New Issue
Block a user