-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added columns for counters without hrfp * fixed some issues of df formats with new columns * modified test for first update keywords * fixed bugs * fixed small issue * fixed issue * fixed unpack issue * updated test function * fixed test function * wip: add high risk false positive column * refacto: remove directes from column names * added tests for HRFP * test: filtering hrfp * db: alembic hrfp counters --------- Co-authored-by: RDiPiazza <[email protected]>
- Loading branch information
1 parent
2725c11
commit 10caded
Showing
8 changed files
with
617 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
"""hrfp counters | ||
Revision ID: ac96222af6fe | ||
Revises: 30abfd828007 | ||
Create Date: 2024-12-02 14:36:21.970968 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = 'ac96222af6fe' | ||
down_revision: Union[str, None] = '30abfd828007' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('keywords', sa.Column('number_of_changement_climatique_constat_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_changement_climatique_causes_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_changement_climatique_consequences_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_attenuation_climatique_solutions_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_adaptation_climatique_solutions_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_ressources_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_ressources_solutions_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_biodiversite_concepts_generaux_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_biodiversite_causes_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_biodiversite_consequences_no_hrfp', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_biodiversite_solutions_no_hrfp', sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('keywords', 'number_of_biodiversite_solutions_no_hrfp') | ||
op.drop_column('keywords', 'number_of_biodiversite_consequences_no_hrfp') | ||
op.drop_column('keywords', 'number_of_biodiversite_causes_no_hrfp') | ||
op.drop_column('keywords', 'number_of_biodiversite_concepts_generaux_no_hrfp') | ||
op.drop_column('keywords', 'number_of_ressources_solutions_no_hrfp') | ||
op.drop_column('keywords', 'number_of_ressources_no_hrfp') | ||
op.drop_column('keywords', 'number_of_adaptation_climatique_solutions_no_hrfp') | ||
op.drop_column('keywords', 'number_of_attenuation_climatique_solutions_no_hrfp') | ||
op.drop_column('keywords', 'number_of_changement_climatique_consequences_no_hrfp') | ||
op.drop_column('keywords', 'number_of_changement_climatique_causes_no_hrfp') | ||
op.drop_column('keywords', 'number_of_changement_climatique_constat_no_hrfp') | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.
10caded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report