Exemplo n.º 1
0
Arquivo: db.py Projeto: TesiFAO/p-geo
def find_by_code(collection, code, sortdate):
    return mongo_commons.find(client, database, collection, { "$query": { "code" : code }, "$orderby": [{ "coverageTime.from" : sortdate }]});
Exemplo n.º 2
0
Arquivo: db.py Projeto: TesiFAO/p-geo
def find_query(collection, query):
    return mongo_commons.find(client, database, collection, query)
Exemplo n.º 3
0
Arquivo: db.py Projeto: TesiFAO/p-geo
def find_by_layername(collection, layername):
    return mongo_commons.find(client, database, collection, { "$query": { "layername" : layername }, "$orderby": [{ "layertitle" : 1 }]});
Exemplo n.º 4
0
Arquivo: db.py Projeto: TesiFAO/p-geo
def find(collection):
     return mongo_commons.find(client, database, collection, { "$query": {}, "$orderby": [{ "layertitle" : 1 }, {"date" : 1}]})