Skip to content

Commit 05c8b42

Browse files
committed
last minor update
1 parent 1156330 commit 05c8b42

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

jsmonwin.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ def get_hash(string):
6969
def save_endpoint(endpoint, ephash, eptext):
7070
# save endpoint content to file
7171
# add it to list of
72-
with open("jsmon.json", "r") as jsm:
72+
with open("jsmonwin.json", "r") as jsm:
7373
jsmd = json.load(jsm)
7474
if endpoint in jsmd.keys():
7575
jsmd[endpoint].append(ephash)
7676
else:
7777
jsmd[endpoint] = [ephash]
7878

79-
with open("jsmon.json", "w") as jsm:
79+
with open("jsmonwin.json", "w") as jsm:
8080
json.dump(jsmd,jsm)
8181

8282
with open("downloads/{}".format(ephash), "w") as epw:
@@ -86,7 +86,7 @@ def save_endpoint(endpoint, ephash, eptext):
8686
def get_previous_endpoint_hash(endpoint):
8787
# get previous endpoint version
8888
# or None if doesnt exist
89-
with open("jsmon.json", "r") as jsm:
89+
with open("jsmonwin.json", "r") as jsm:
9090
jsmd = json.load(jsm)
9191
if endpoint in jsmd.keys():
9292
return jsmd[endpoint][-1]
@@ -191,5 +191,4 @@ def main():
191191
print("New Endpoint enrolled: {}".format(ep))
192192

193193

194-
main()
195-
194+
main()

0 commit comments

Comments
 (0)