Skip to content

Commit

Permalink
Management of the search form - Merge pull request #217
Browse files Browse the repository at this point in the history
Remove the management of the search form from the main class **Isogeo** (`isogeo.py`)
see #217 for more details about code changes and improvements
  • Loading branch information
SimonSAMPERE committed Sep 2, 2019
2 parents 7929a76 + 334134b commit 628b104
Show file tree
Hide file tree
Showing 16 changed files with 1,179 additions and 1,028 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,12 @@
exclude: ^(.venv_packaging/|.venv_tests/|.venv*/|tests/dev/|tests/fixtures/)
repos:
- repo: https://github.com/python/black
rev: 19.3b0
hooks:
- id: black
name: black
description: 'Formatting code using Black'
exclude_types: [directory,]
language_version: python3
log_file: dev_precommit.log
types: [file, python]
5 changes: 5 additions & 0 deletions .vscode/settings.json
Expand Up @@ -13,6 +13,11 @@
//"python.pythonPath": "${workspaceFolder}/.venv_tests/Scripts/python.exe",
"python.pythonPath": "C:/OSGeo4W64/bin/python-qgis-ltr.bat",

// Formatting with black
"python.formatting.provider": "black",
"python.formatting.blackPath": "${workspaceFolder}/.venv_dev/Lib",
"python.formatting.blackArgs": ["--target-version=py37",],

// Replicate the QGIS environment
"terminal.integrated.env.windows": {
// Path
Expand Down
15 changes: 9 additions & 6 deletions _user/quicksearches.json
@@ -1,18 +1,21 @@
{
"_default": {
"contact": null,
"datatype": "type:dataset",
"contacts": null,
"favorite": null,
"format": null,
"formats": null,
"geofilter": null,
"inspire": null,
"license": null,
"lang": "fr",
"licenses": null,
"ob": "relevance",
"od": "desc",
"operation": "intersects",
"owner": null,
"owners": null,
"page": 1,
"show": true,
"srs": null,
"text": "",
"url": "https://v1.api.isogeo.com/resources/search?q=type:dataset&_limit=0&_offset=0"
"types": "type:dataset",
"url": "https://api.isogeo.com/resources/search?q=type:dataset&ob=relevance&od=desc&_include=serviceLayers,layers&_limit=10&_offset=0&_lang=fr"
}
}

0 comments on commit 628b104

Please sign in to comment.