Exemple #1
0
def find_by_code(collection, code, sortdate):
    return mongo_commons.find(client, database, collection, { "$query": { "code" : code }, "$orderby": [{ "coverageTime.from" : sortdate }]});
Exemple #2
0
def find_query(collection, query):
    return mongo_commons.find(client, database, collection, query)
Exemple #3
0
def find_by_layername(collection, layername):
    return mongo_commons.find(client, database, collection, { "$query": { "layername" : layername }, "$orderby": [{ "layertitle" : 1 }]});
Exemple #4
0
def find(collection):
     return mongo_commons.find(client, database, collection, { "$query": {}, "$orderby": [{ "layertitle" : 1 }, {"date" : 1}]})