Convert mtime to int

This commit is contained in:
Dmitry
2018-01-06 04:16:22 -08:00
parent d2790f9306
commit c79a7cd2df
+2
View File
@@ -54,6 +54,7 @@ class State(object):
return State(root_dir, dvc_dir)
def update(self, path, md5, mtime):
mtime = int(mtime)
existing = self.get(path)
if not existing:
return self.add(path, md5, mtime)
@@ -64,6 +65,7 @@ class State(object):
return state
def add(self, path, md5, mtime):
mtime = int(mtime)
entry = StateEntry(self.root_dir, path, md5, mtime)
self._db.insert(entry.dumpd())
return entry