mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-20 10:19:59 +00:00
fix(recruitment): honor explicitly selected zero identifiers
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
@@ -352,11 +352,11 @@ class RecruitmentFunnelAnalyzer:
|
||||
|
||||
def filter_data(self, position_id=None, department=None, period=None):
|
||||
filtered = self.data.copy()
|
||||
if position_id:
|
||||
if position_id is not None:
|
||||
filtered = filtered[filtered['position_id'] == position_id]
|
||||
if department:
|
||||
if department is not None:
|
||||
filtered = filtered[filtered['department'] == department]
|
||||
if period:
|
||||
if period is not None:
|
||||
filtered = filtered[filtered['period'] == period]
|
||||
return filtered
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user