Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature allow to filter out specific absence entries #24

Open
flybyray opened this issue Apr 20, 2024 · 0 comments
Open

Feature allow to filter out specific absence entries #24

flybyray opened this issue Apr 20, 2024 · 0 comments

Comments

@flybyray
Copy link

There are some special types of absence which are auto approved for instance for remote_work.

Currently there is not distinction between special absences.

isAbsence = len(json.loads(response.text)['data'])

a simple personal workarround would be something like. But it might be usefull to allow some config in config.py.

isAbsence = len(list(filter(lambda a : a['attributes']['time_off_type_id'] != 113287, json.loads(response.text)['data'])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant