diff --git a/emission/core/get_database.py b/emission/core/get_database.py index 898973504..7abcf2f84 100644 --- a/emission/core/get_database.py +++ b/emission/core/get_database.py @@ -23,7 +23,7 @@ db_config[key] = None print("Retrieved config: %s" % db_config) url = config.get("DB_HOST", "localhost") -result_limit = config.get("DB_RESULT_LIMIT", 250000) +result_limit = int(config.get("DB_RESULT_LIMIT", 250000)) try: parsed=pymongo.uri_parser.parse_uri(url)