Add sorting
This commit is contained in:
@@ -57,6 +57,7 @@ class HackerNewsFinder:
|
||||
else:
|
||||
output[hashed] = [info[0]]
|
||||
data["readed"].append(link)
|
||||
data["readed"] = sorted(set(data["readed"]))
|
||||
with open(self.path_file + ".json", "w") as fp:
|
||||
json.dump(data, fp)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"readed": [42826625, 42826624, 41096633, 41096632, 40954210, 40954209, 42840294, 42840293, 42893640, 42893639]}
|
||||
{"readed": [40954209, 40954210, 41096632, 41096633, 42826624, 42826625, 42840293, 42840294, 42893639, 42893640]}
|
||||
Reference in New Issue
Block a user