Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Iching.datetime_bookgua() missing 1 required positional argument: 'minute'` #9

Open
jebberwocky opened this issue Mar 2, 2024 · 1 comment

Comments

@jebberwocky
Copy link

error message:
return self.datetime_bookgua(int(now.year), int(now.month), int(now.day), int(now.hour)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Iching.datetime_bookgua() missing 1 required positional argument: 'minute'

看了代码, 是不是少传了minutes

def current_bookgua(self):
        now = datetime.datetime.now()
        return self.datetime_bookgua(int(now.year), int(now.month), int(now.day), int(now.hour))

def datetime_bookgua(self, y,m,d,h,minute):
https://github.com/kentang2017/ichingshifa/blob/9d06cd3bfbd5fe17525826a81bec721cb80e5bac/ichingshifa/ichingshifa.py#L323C9-L323C97

jebberwocky added a commit to jebberwocky/ichingshifa that referenced this issue Mar 2, 2024
@jebberwocky
Copy link
Author

已经在fork修复, 请通过 pull request #10

test code:
from ichingshifa import ichingshifa print(ichingshifa.Iching().current_bookgua()) ('頤之賁', '山雷頤', '變爻為六三', '拂頤,貞凶,十年勿用,無攸利。')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant