def _list_files(layer_id):
    files = File.query(File.layer == ndb.Key(Layer, layer_id)).fetch()
    files_tdj = [f.to_dict_json() for f in files]
    return files_tdj
Beispiel #2
0
def _delete_files(layer):
    files = File.query(File.layer == layer.key).fetch()
    files_tdj = delete_file_svc.delete(files)
    return files_tdj['files']
def _list_files(layer_id):
    files = File.query(File.layer == ndb.Key(Layer, layer_id)).fetch()
    files_tdj = [f.to_dict_json() for f in files]
    return files_tdj