|
|
|
@ -174,12 +174,12 @@ class ImportServerUtilities: |
|
|
|
if fw.get_state() != 'Active': |
|
|
|
if fw.get_state() != 'Active': |
|
|
|
continue |
|
|
|
continue |
|
|
|
datastreams = fw.get_datastream_types() |
|
|
|
datastreams = fw.get_datastream_types() |
|
|
|
for datastream, in datastreams.keys(): |
|
|
|
for datastream in datastreams.keys(): |
|
|
|
count = dsids.get(datastream) |
|
|
|
count = dsids.get(datastream) |
|
|
|
if count is not None: |
|
|
|
if count is not None: |
|
|
|
dsids[datastream] = count + 1 |
|
|
|
dsids[datastream] = count + 1 |
|
|
|
else: |
|
|
|
else: |
|
|
|
datastreams[datastream] = 1 |
|
|
|
dsids[datastream] = 1 |
|
|
|
with open("dsid.json", "w") as file: |
|
|
|
with open("dsid.json", "w") as file: |
|
|
|
json.dump(dsids, file, indent=4) |
|
|
|
json.dump(dsids, file, indent=4) |
|
|
|
|
|
|
|
|
|
|
|
|