dbMongo.py
def listPointClusterOnDateDB(self,date1):
        """This method allows to ask the DB for clusters' points of specific date"""
        count = self.db.PointClusterCollection.find({"properties.dateStr":date1}).count()
        print("Number Point:",count)
        if(count >= 1):
            result = True
            cursorListPointCluster = self.db.PointClusterCollection.find({"properties.dateStr":date1})
            return result,cursorListPointCluster
        else:
            result = False
            cursorListPointCluster = None
            return result,cursorListPointCluster
This method allows to ask the DB for clusters' points of specific date
This method allows to ask the DB for clusters' points of specific date
This method allows to ask the DB for clusters ' points of specific date
def listPointClusterOnDateDB(self,date1):
        count = self.db.PointClusterCollection.find({"properties.dateStr":date1}).count()
        print("Number Point:",count)
        if(count >= 1):
            result = True
            cursorListPointCluster = self.db.PointClusterCollection.find({"properties.dateStr":date1})
            return result,cursorListPointCluster
        else:
            result = False
            cursorListPointCluster = None
            return result,cursorListPointCluster
def listPointClusterOnDateDB ( self , date1 ) : count = self . db . PointClusterCollection . find ( { "properties.dateStr" : date1 } ) . count ( ) print ( "Number Point:" , count ) if ( count >= 1 ) : result = True cursorListPointCluster = self . db . PointClusterCollection . find ( { "properties.dateStr" : date1 } ) return result , cursorListPointCluster else : result = False cursorListPointCluster = None return result , cursorListPointCluster
This method allows to ask the DB for clusters' points of specific date
This method allows to ask the DB for clusters ' points of specific date
"""This method allows to ask the DB for clusters' points of specific date"""
self
date1