diff --git a/README.md b/README.md index db2807d..ff3c913 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ class Collector(BaseCollector): def get_last(self, name): algo_results = self.get(name) if algo_results is not None and len(algo_results.keys()) > 0: - return algo_results[max(algo_results.keys())] + return algo_results[(str(max([int(k) for k in algo_results.keys()])))] return None diff --git a/README.zh.md b/README.zh.md index 33e24d6..13c7a46 100644 --- a/README.zh.md +++ b/README.zh.md @@ -55,7 +55,7 @@ class Collector(BaseCollector): def get_last(self, name): algo_results = self.get(name) if algo_results is not None and len(algo_results.keys()) > 0: - return algo_results[max(algo_results.keys())] + return algo_results[(str(max([int(k) for k in algo_results.keys()])))] return None