@@ -69,14 +69,14 @@ def get_hash(string):
69
69
def save_endpoint (endpoint , ephash , eptext ):
70
70
# save endpoint content to file
71
71
# add it to list of
72
- with open ("jsmon .json" , "r" ) as jsm :
72
+ with open ("jsmonwin .json" , "r" ) as jsm :
73
73
jsmd = json .load (jsm )
74
74
if endpoint in jsmd .keys ():
75
75
jsmd [endpoint ].append (ephash )
76
76
else :
77
77
jsmd [endpoint ] = [ephash ]
78
78
79
- with open ("jsmon .json" , "w" ) as jsm :
79
+ with open ("jsmonwin .json" , "w" ) as jsm :
80
80
json .dump (jsmd ,jsm )
81
81
82
82
with open ("downloads/{}" .format (ephash ), "w" ) as epw :
@@ -86,7 +86,7 @@ def save_endpoint(endpoint, ephash, eptext):
86
86
def get_previous_endpoint_hash (endpoint ):
87
87
# get previous endpoint version
88
88
# or None if doesnt exist
89
- with open ("jsmon .json" , "r" ) as jsm :
89
+ with open ("jsmonwin .json" , "r" ) as jsm :
90
90
jsmd = json .load (jsm )
91
91
if endpoint in jsmd .keys ():
92
92
return jsmd [endpoint ][- 1 ]
@@ -191,5 +191,4 @@ def main():
191
191
print ("New Endpoint enrolled: {}" .format (ep ))
192
192
193
193
194
- main ()
195
-
194
+ main ()
0 commit comments