Skip to content

Commit

Permalink
Add influenza, pfizer pediátrica e coronavac pediátrica (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfelipeog authored Jan 21, 2022
2 parents 3d49372 + 9df19e8 commit 592ebd7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,11 @@ Todos os Enums estão disponíveis para uso atráves da interface príncipal do
- `Immunizing.ASTRAZENECA`
- `Immunizing.INTERCAMBIALIDADE`
- `Immunizing.PFIZER`
- `Immunizing.PFIZER_PEDIATRICA`
- `Immunizing.CORONAVAC`
- `Immunizing.CORONAVAC_PEDIATRICA`
- `Immunizing.JANSSEN`
- `Immunizing.INFLUENZA`


## Contribuições
Expand Down
2 changes: 1 addition & 1 deletion filometro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'District',
'Filometro'
]
__version__ = '0.1.1'
__version__ = '0.2.0'
__author__ = 'Matheus Felipe'

from filometro.enums import Zone
Expand Down
3 changes: 3 additions & 0 deletions filometro/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ def posto_dict_to_posto_object(posto_dict: dict) -> Posto:
zone=posto_dict['crs'],
astrazeneca=posto_dict['astrazeneca'],
coronavac=posto_dict['coronavac'],
coronavac_pediatrica=posto_dict['corona_ped'],
pfizer=posto_dict['pfizer'],
pfizer_pediatrica=posto_dict['pfizer_ped'],
janssen=posto_dict['janssen'],
influenza=posto_dict['influenza'],
intercambialidade=posto_dict['intercambialidade'],
situation=posto_dict['status_fila'],
modality=posto_dict['tipo_posto'],
Expand Down
3 changes: 3 additions & 0 deletions filometro/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ class Posto():
zone: str = field(repr=False) # crs (Coordinate Reference Systems)
astrazeneca: str = field(repr=False)
coronavac: str = field(repr=False)
coronavac_pediatrica: str = field(repr=False)
pfizer: str = field(repr=False)
pfizer_pediatrica: str = field(repr=False)
janssen: str = field(repr=False)
influenza: str = field(repr=False)
intercambialidade: str = field(repr=False)
situation: str = field(repr=False) # status_fila
modality: str = field(repr=False) # tipo_posto
Expand Down
3 changes: 3 additions & 0 deletions filometro/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ class Immunizing(Enum):
ASTRAZENECA = 'astrazeneca'
INTERCAMBIALIDADE = 'intercambialidade'
PFIZER = 'pfizer'
PFIZER_PEDIATRICA = 'pfizer_pediatrica'
CORONAVAC = 'coronavac'
CORONAVAC_PEDIATRICA = 'coronavac_pediatrica'
JANSSEN = 'janssen'
INFLUENZA = 'influenza'


class District(Enum):
Expand Down

0 comments on commit 592ebd7

Please sign in to comment.