From 6b0c362b5e01b605bbadc18dd8982d21d2779b23 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Mon, 31 Jan 2022 15:32:34 +0100 Subject: [PATCH] do not update history while syncing --- offpunk.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/offpunk.py b/offpunk.py index f260002..a1122f5 100755 --- a/offpunk.py +++ b/offpunk.py @@ -1025,7 +1025,7 @@ you'll be able to transparently follow links to Gopherspace!""") # Update state self.gi = gi - if update_hist: + if update_hist and not self.sync_only: self._update_history(gi) @@ -1477,6 +1477,9 @@ you'll be able to transparently follow links to Gopherspace!""") print(self._format_geminiitem(n+offset+1, gi, url)) def _update_history(self, gi): + # We never update while in sync_only + if self.sync_only: + return # We don’t add lists to history if not gi or os.path.join(_DATA_DIR,"lists") in gi.url: return