From 0238e75d36c611ff3f0f00918d02d91236587b8a Mon Sep 17 00:00:00 2001 From: nishiki Date: Fri, 1 Jul 2016 09:15:39 +0200 Subject: [PATCH] no sync if last_sync == remote.last_sync --- lib/mpw/mpw.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mpw/mpw.rb b/lib/mpw/mpw.rb index 14f7ab8..a07061c 100644 --- a/lib/mpw/mpw.rb +++ b/lib/mpw/mpw.rb @@ -336,6 +336,8 @@ class MPW File.unlink(tmp_file) if File.exist?(tmp_file) + return if remote.get_last_sync == get_last_sync + if not remote.to_s.empty? @data.each do |item| update = false