GithubHelp home page GithubHelp logo

kimai-cli's People

Contributors

alexfrancavilla avatar choules avatar dependabot[bot] avatar ksassnowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

alexfrancavilla

kimai-cli's Issues

Retrieving the currently running time is shaky

Right now to get the currently running time we fetch all entries and check if the first one has an end time of 0. This is not very reliable however, since there might have been records scheduled that have a later start time than the currently running record. This would cause the cli to think that there is no currently running entry.

Show running time in shell prompt

It would be nice if we could display the currently running record in the shell prompt. This would mean not having to use kimai record get-current all the time.

Adding a comment results in exception

When trying to add a comment to a currently running record, kimai-cli crashes with an exception after saving the comment with vi.

ecto-6:kimai-cli choules$ kimai record get-current 
+-------+--------------+------------+------------+------------+-----------+---------+-----------+
|    Id | Start Time   | End Time   | Duration   | Customer   | Project   | Task    | Comment   |
+=======+==============+============+============+============+===========+=========+===========+
| 88403 | 10:30:59     | -          | 0:01       | wycomco    | Internes  | Akquise |           |
+-------+--------------+------------+------------+------------+-----------+---------+-----------+
ecto-6:kimai-cli choules$ kimai record comment 
Id: 88403
Traceback (most recent call last):
  File "/usr/local/bin/kimai", line 11, in <module>
    load_entry_point('kimai-cli==0.6.2', 'console_scripts', 'kimai')()
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/kimai/cli.py", line 481, in comment_on_record
    kimai.comment_on_record(id, comment)
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/kimai/kimai.py", line 309, in comment_on_record
    return edit_record(record_id, comment=comment)
  File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/kimai/kimai.py", line 290, in edit_record
    'end': end.isoformat(),
AttributeError: 'NoneType' object has no attribute 'isoformat'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.