def convert_metadata(metadata): return { "name": metadata.name, "path_lower": metadata.path_lower, "last_modified": date_helpers.to_datetime_str(metadata.server_modified), "rev": metadata.rev }
def get_metadata(path): return {"name": path, "last_modified": date_helpers.to_datetime_str(files[path]["last_modified"]), "rev": 1}
def convert_metadata(metadata): return {"name": metadata.name, "path_lower": metadata.path_lower, "last_modified": date_helpers.to_datetime_str(metadata.server_modified), "rev": metadata.rev}