GithubHelp home page GithubHelp logo

puhitaku / mfpy Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 15 KB

MoneyForward クラウド勤怠といい感じに通信していい感じに打刻するやつ

License: MIT License

Python 100.00%

mfpy's People

Contributors

aikinai avatar puhitaku avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yusukeoba aikinai

mfpy's Issues

就業ルールによって休憩ボタンがなく実行が失敗する

事象

startjobの実行が失敗しました。
おそらくfinishjobも失敗しそうです。

原因としてはMF勤怠の設定により休憩関連のボタンがないので、そこでこけていそうです。

MF勤怠の設定

就業ルール: 裁量労働制
休憩打刻: 受け付けない

https://support.biz.moneyforward.com/attendance/guide/employment_rules2/discretionarylaboremploymentrule.html

実行コマンド

python -m mfpy -c {会社ID} -u {ユーザーID} -p {パスワード} startjob 

トレース

Traceback (most recent call last):
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/hikoy/project/src/github.com/puhitaku/mfpy/mfpy/__main__.py", line 105, in <module>
    cmd()
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/hikoy/.pyenv/versions/3.8.1/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/hikoy/project/src/github.com/puhitaku/mfpy/mfpy/__main__.py", line 28, in startjob
    ok, status = client.start_job()
  File "/Users/hikoy/project/src/github.com/puhitaku/mfpy/mfpy/mf.py", line 128, in start_job
    return self._record(_Ops.clock_in)
  File "/Users/hikoy/project/src/github.com/puhitaku/mfpy/mfpy/mf.py", line 169, in _record
    start_break = mbs.find('input', attrs={'value': 'start_break'}).parent
AttributeError: 'NoneType' object has no attribute 'parent'

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.