remove unused import and dont override built-in "id"
This commit is contained in:
parent
1e9a120f7e
commit
d89cdff90a
@ -1,6 +1,5 @@
|
|||||||
import copy
|
import copy
|
||||||
import numbers
|
import numbers
|
||||||
import operator
|
|
||||||
from collections import Hashable
|
from collections import Hashable
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
|
@ -1395,11 +1395,13 @@ class GridFSProxy(object):
|
|||||||
get_db(self.db_alias), self.collection_name)
|
get_db(self.db_alias), self.collection_name)
|
||||||
return self._fs
|
return self._fs
|
||||||
|
|
||||||
def get(self, id=None):
|
def get(self, grid_id=None):
|
||||||
if id:
|
if grid_id:
|
||||||
self.grid_id = id
|
self.grid_id = grid_id
|
||||||
|
|
||||||
if self.grid_id is None:
|
if self.grid_id is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if self.gridout is None:
|
if self.gridout is None:
|
||||||
self.gridout = self.fs.get(self.grid_id)
|
self.gridout = self.fs.get(self.grid_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user