update readme and add tags

This commit is contained in:
3wc
2021-11-29 15:24:51 +02:00
parent acc3153fba
commit 4c8dd9de4d
2 changed files with 7 additions and 3 deletions

View File

@ -496,6 +496,7 @@ def sync(username, api_key, just_errors, ignore_activities, mapping_path=None):
just_errors or click.secho("Found activity '{0}'".format(activity_str), fg='green')
found_activities.append(activity_str)
@kimai.command('import')
@click.option('--mapping-path', help='Mapping file (default ~/.local/share/hamster/mapping.kimai.csv)')
@click.option('--output', help='Output file (default kimai.csv)')
@ -521,7 +522,7 @@ def _import(username, mapping_path=None, output=None, category_search=None, afte
next(mapping_reader)
mapping = {
'{0}:{1}'.format(row[0], row[1]): [row[2], row[3], row[4]]
'{0}:{1}'.format(row[0], row[1]): [row[2], row[3], row[4], row[5]]
for row in mapping_reader
}
@ -618,7 +619,7 @@ def _import(username, mapping_path=None, output=None, category_search=None, afte
mapping_[2],
fact[3] or '',
'0', # Exported
'', # Tags
mapping_[3],
'', # Hourly rate
'', # Fixed rate
])