You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When public method vacation_days is called, the attribute vacationdays should not change as this leads to wrong results in the output of the stats method.
The text was updated successfully, but these errors were encountered:
Quick fix for v0.1: hide method vacation_days.
For v0.2 make sure, vacation_days das not change any Kimai attributes. Make a public function vacation_days as described in #7 that does not change attributes and a private method that makes use of the public function that is allowed to change attributes.
Change default directory from data/ to cwd.
In main in class Kimai, make methods work_days and vacation_days
functions and move them to module workcal. Rename vacation_days to a
more general name off_days to be able to calculate other leave days like
sick leave. Deprecate method __vacation_number.
Store the vacation days and the file name as an instance of OffDays in
Kimai.
Instead of property and setter decorators use a generic setter and
deleter function and the property function with specific getters and the
generic setter/deleter function.
Define named tuple Period in module loader with default values for start
1.1.1900 and end 1.1.2100. Make TimeLog a subclass of TimeFrame and move
attributes year and period to TimeFrame.
Add module workcal to package kimbal and move with functions work_days
and off_days and class OffDays that calculates and saves the number of
leave days. Remove attributes in functions off_days and work_days to
ensure Kimai attributes cannot be change after instantiation (#8)
Use the find_packages function from supertools in setup.py to define the
packages in setup.
In module colourlog, rename colour variable to names associated with the
log level to be more flexible with colour changes.
Refine imports in main and other modules.
Update docstrings and README.
Closes#7 and #8.
When public method
vacation_days
is called, the attributevacationdays
should not change as this leads to wrong results in the output of thestats
method.The text was updated successfully, but these errors were encountered: