feriennet.cli
Attributes
Functions
|
Deletes all the data associated with a period, including: |
Recomputes the durations of all occassions. |
|
|
Deletes activities with name (not Title). |
Strips leading/trailing whitespace from first_name and last_name |
|
|
Reports fairness statistics for a matched period (PRO-1428). |
Module Contents
- feriennet.cli.delete_period(title: str) collections.abc.Callable[[onegov.feriennet.request.FeriennetRequest, onegov.feriennet.app.FeriennetApp], None][source]
Deletes all the data associated with a period, including:
Payments
Bookings
Occasions
Publication Requests
Tickets
We usually don’t allow for this, but there tends to be a request here and there about this, where a Ferienpass created a period for testing and tries to return to a semi-clean state.
Example:
onegov-feriennet --select /foo/bar delete-period "Ferienpass Test"
- feriennet.cli.compute_occasion_durations() collections.abc.Callable[[onegov.feriennet.request.FeriennetRequest, onegov.feriennet.app.FeriennetApp], None][source]
Recomputes the durations of all occassions.
Example:
onegov-feriennet --select /foo/bar compute-occasion-durations
- feriennet.cli.delete_activity(name: str) collections.abc.Callable[[onegov.feriennet.request.FeriennetRequest, onegov.feriennet.app.FeriennetApp], None][source]
Deletes activities with name (not Title).
Example:
onegov-feriennet --select /foo/bar activity "mandala-malen"
- feriennet.cli.strip_whitespace_from_names(dry_run: bool) collections.abc.Callable[[onegov.feriennet.request.FeriennetRequest, onegov.feriennet.app.FeriennetApp], None][source]
Strips leading/trailing whitespace from first_name and last_name of all volunteers.
Example:
onegov-feriennet –select /onegov_feriennet/* strip-whitespace-from-names
- feriennet.cli.match_fairness(title: str | None) collections.abc.Callable[[onegov.feriennet.request.FeriennetRequest, onegov.feriennet.app.FeriennetApp], None][source]
Reports fairness statistics for a matched period (PRO-1428).
Read-only. Run after a matching run to see how many favourites (starred wishes) went unfulfilled and whether children with many wishes are hit harder than children with few wishes - the effect of the absolute star cap of three favourites per child.
Without a title the latest period (by execution start) is used, so the report can be run across all instances at once:
onegov-feriennet --select '/*' match-fairness onegov-feriennet --select /foo/bar match-fairness "Ferienpass 2026"