Skip to content

Commit

Permalink
Fix(destination) add type occhab to module occhab
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi authored and bouttier committed Dec 22, 2023
1 parent 323ef30 commit f3fc016
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,28 @@ def upgrade():
]
)
)
op.execute(
"""
UPDATE
gn_commons.t_modules
SET
type = 'occhab'
WHERE
module_code = 'OCCHAB'
"""
)


def downgrade():
op.drop_table(schema="gn_imports", table_name="t_imports_occhab")
op.execute("DELETE FROM gn_imports.bib_destinations WHERE code = 'occhab'")
op.execute(
"""
UPDATE
gn_commons.t_modules
SET
type = 'base'
WHERE
module_code = 'OCCHAB'
"""
)
4 changes: 2 additions & 2 deletions frontend/src/app/modules/imports/services/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class DataService {
private _http: HttpClient,
public config: ConfigService
) {
//this.urlApi = `${this.config.API_ENDPOINT}/import/synthese`;
this.urlApi = `${this.config.API_ENDPOINT}/import/occhab`;
this.urlApi = `${this.config.API_ENDPOINT}/import/synthese`;
// this.urlApi = `${this.config.API_ENDPOINT}/import/occhab`;
}

getNomenclatures(): Observable<any> {
Expand Down

0 comments on commit f3fc016

Please sign in to comment.