gemini.git

going-flying.com gemini git repository

summary

tree

log

refs

1a1734b6e5b3b3ab581b027ebbd6660a7dbac47e - Matthew Ernisse - 1596342328

.sort() does not return anything

view tree

view raw

diff --git a/files/thoughts-to-gemini.py b/files/thoughts-to-gemini.py
index 2f26da9..812b2c6 100755
--- a/files/thoughts-to-gemini.py
+++ b/files/thoughts-to-gemini.py
@@ -176,7 +176,8 @@ class Thoughts(object):
 			local_newest = self.thoughts[0]['id']
 			if self.api.newest > local_newest:
 				_t = ThoughtApi(local_newest)
-				thoughts = list(_t.thoughts).sort(
+				thoughts = list(_t.thoughts)
+				thoughts.sort(
 					key=lambda k: k['id'],
 					reverse=True
 				)