dbMongo.py
def listPolygonOnDateDB(self,date1):
        """This method allows to ask the DB for the polygons' list of specific date"""
        count = self.db.PolygonCollection.find({"properties.dateStr":date1}).count()
        if(count >= 1):
            result = True
            cursorListPolygon = self.db.PolygonCollection.find({"properties.dateStr":date1})
            return result,cursorListPolygon
        else:
            result = False
            cursorListPolygon = None
            return result,cursorListPolygon
This method allows to ask the DB for the polygons' list of specific date
This method allows to ask the DB for the polygons' list of specific date
This method allows to ask the DB for the polygons ' list of specific date
def listPolygonOnDateDB(self,date1):
        count = self.db.PolygonCollection.find({"properties.dateStr":date1}).count()
        if(count >= 1):
            result = True
            cursorListPolygon = self.db.PolygonCollection.find({"properties.dateStr":date1})
            return result,cursorListPolygon
        else:
            result = False
            cursorListPolygon = None
            return result,cursorListPolygon
def listPolygonOnDateDB ( self , date1 ) : count = self . db . PolygonCollection . find ( { "properties.dateStr" : date1 } ) . count ( ) if ( count >= 1 ) : result = True cursorListPolygon = self . db . PolygonCollection . find ( { "properties.dateStr" : date1 } ) return result , cursorListPolygon else : result = False cursorListPolygon = None return result , cursorListPolygon
This method allows to ask the DB for the polygons' list of specific date
This method allows to ask the DB for the polygons ' list of specific date
"""This method allows to ask the DB for the polygons' list of specific date"""
self
date1