Compare commits

...

4 Commits

Author SHA1 Message Date
Maximilian Zettler 89ffee8405 Merge branch 'master' of https://git.saltmaster.de/madmax/timebot 2 years ago
Maximilian Zettler cd6940c9d1 use fixed version of nuitka to omit segfault 2 years ago
Maximilian Zettler d2d0f86ddb bump version to 0.2.1 2 years ago
Maximilian Zettler fee1ba62ab do not exit in smart_punch function 2 years ago
  1. 8
      poetry.lock
  2. 4
      pyproject.toml
  3. 2
      timebot/__init__.py
  4. 4
      timebot/timebot.py

8
poetry.lock generated

@ -438,13 +438,13 @@ files = [
[[package]]
name = "urllib3"
version = "2.0.4"
version = "2.0.5"
description = "HTTP library with thread-safe connection pooling, file post, and more."
optional = false
python-versions = ">=3.7"
files = [
{file = "urllib3-2.0.4-py3-none-any.whl", hash = "sha256:de7df1803967d2c2a98e4b11bb7d6bd9210474c46e8a0401514e3a42a75ebde4"},
{file = "urllib3-2.0.4.tar.gz", hash = "sha256:8d22f86aae8ef5e410d4f539fde9ce6b2113a001bb4d189e0aed70642d602b11"},
{file = "urllib3-2.0.5-py3-none-any.whl", hash = "sha256:ef16afa8ba34a1f989db38e1dbbe0c302e4289a47856990d0682e374563ce35e"},
{file = "urllib3-2.0.5.tar.gz", hash = "sha256:13abf37382ea2ce6fb744d4dad67838eec857c9f4f57009891805e0b5e123594"},
]
[package.extras]
@ -525,4 +525,4 @@ cffi = ["cffi (>=1.11)"]
[metadata]
lock-version = "2.0"
python-versions = ">=3.8,<3.11"
content-hash = "5eb2a26f64f5d6a5f2974d0c09476d69eafa645a804b69e007f53262037e9bd7"
content-hash = "4db055c9b57b9e6dde571cb95d2f484a4f2cbec2862be539374843e13644d92d"

@ -1,6 +1,6 @@
[tool.poetry]
name = "timebot"
version = "0.2.0"
version = "0.2.1"
description = ""
authors = ["Maximilian Zettler <info@max-zettler.de>"]
readme = "README.md"
@ -16,7 +16,7 @@ pytimeparse = "^1.1.8"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
Nuitka = "^1.7"
Nuitka = ">1.7,<1.8"
[build-system]
requires = ["poetry-core>=1.0.0"]

@ -1 +1 @@
__version__ = '0.1.0'
__version__ = '0.2.1'

@ -338,11 +338,11 @@ class TimeBot:
method = "punch_out"
elif last_punch[0]["entryNumber"] == PunchCodes.LEAVING.value:
self.logger.error("your last entry was `punch_out`... punching in again with this command is not supported")
sys.exit(1)
raise Exception("your last entry was `punch_out`... punching in again with this command is not supported")
if method is None:
self.logger.error("hit an unknown situation... detection failed; run with `-v` for more info")
self.logger.debug(f"last entry was: {last_punch}")
exit(1)
raise Exception("hit an unknown situation... method detection failed;")
self.logger.info("running `{}` with date `{}` and time `{}`".format(
method,
punch_datetime.strftime(DateFormats.SIMPLE_DATE.value),

Loading…
Cancel
Save