From f9a976142290e65dcf6a36b358934c433014c575 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Fri, 23 Jun 2023 10:52:31 +0200 Subject: [PATCH] Sort frames stored in git This should minimize the changes when different clients commit to the repository. --- watson/watson.py | 1 + 1 file changed, 1 insertion(+) diff --git a/watson/watson.py b/watson/watson.py index f31a387..52460f4 100644 --- a/watson/watson.py +++ b/watson/watson.py @@ -437,6 +437,7 @@ def push(self, last_pull): 'project': frame.project, 'tags': frame.tags }) + frames.sort(key=lambda frame: frame['begin_at']) # Get number of synced frames sync_file = os.path.join(self.sync_dir, 'frames')