Skip to content

Commit

Permalink
fix(backend/export): use correct export visit date field name
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm-cbna committed Dec 8, 2022
1 parent a4842a0 commit e44155c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.1.2
2 changes: 1 addition & 1 deletion backend/gn_module_monitoring_flora_territory/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def export_visits():
query = query.filter(VisitsExport.area_name == parameters["commune"])

if "year" in parameters:
query = query.filter(func.date_part("year", VisitsExport.visit_date) == parameters["year"])
query = query.filter(func.date_part("year", VisitsExport.visit_date_min) == parameters["year"])

if "cd_nom" in parameters:
query = query.filter(VisitsExport.cd_nom == parameters["cd_nom"])
Expand Down
11 changes: 3 additions & 8 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@

{
"name": "suivi_flore_territoire",
"version": "1.0.0",
"name": "monitoring_flora_territory",
"version": "1.1.2",
"description": "Module Suivi Flore Territoire",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
"license": "GPLv3"
}

0 comments on commit e44155c

Please sign in to comment.