Revize 587b1c57
Přidáno uživatelem Petr Hlaváč před asi 4 roky(ů)
modules/crawler/Utilities/Database/DatabaseLoader.py | ||
---|---|---|
94 | 94 |
collection_datasets = database[MONGODB_DATASET_COLLECTION] |
95 | 95 |
|
96 | 96 |
# check if newly added data already have a dataset specified in collection |
97 |
dataset_present = collection_datasets.find_one({}, {'name': dataset_name})
|
|
97 |
dataset_present = collection_datasets.find_one({'name': dataset_name}) |
|
98 | 98 |
|
99 | 99 |
if dataset_present is None: |
100 | 100 |
collection_datasets.insert_one({'name': dataset_name}) |
Také k dispozici: Unified diff
Added alfa version of coordinates to config files and fixed bug in databaseloader