projects
/
osm
/
common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing black errors
[osm/common.git]
/
osm_common
/
fsmongo.py
diff --git
a/osm_common/fsmongo.py
b/osm_common/fsmongo.py
index
ff37c42
..
21a5d67
100644
(file)
--- a/
osm_common/fsmongo.py
+++ b/
osm_common/fsmongo.py
@@
-511,7
+511,6
@@
class FsMongo(FsBase):
self.__update_local_fs(from_path=from_path)
def _update_mongo_fs(self, from_path):
self.__update_local_fs(from_path=from_path)
def _update_mongo_fs(self, from_path):
-
os_path = self.path + from_path
# Obtain list of files and dirs in filesystem
os_path = self.path + from_path
# Obtain list of files and dirs in filesystem
@@
-554,7
+553,6
@@
class FsMongo(FsBase):
remote_files.pop(rel_filename, None)
if last_modified_date >= upload_date:
remote_files.pop(rel_filename, None)
if last_modified_date >= upload_date:
-
stream = None
fh = None
try:
stream = None
fh = None
try:
@@
-589,7
+587,6
@@
class FsMongo(FsBase):
self.fs.delete(file._id)
def _get_mongo_files(self, from_path=None):
self.fs.delete(file._id)
def _get_mongo_files(self, from_path=None):
-
file_dict = {}
file_cursor = self.fs.find(no_cursor_timeout=True, sort=[("uploadDate", -1)])
for file in file_cursor:
file_dict = {}
file_cursor = self.fs.find(no_cursor_timeout=True, sort=[("uploadDate", -1)])
for file in file_cursor: