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

calling function fname_from_date() #11

Open
diegostaPy opened this issue Jul 21, 2021 · 3 comments
Open

calling function fname_from_date() #11

diegostaPy opened this issue Jul 21, 2021 · 3 comments

Comments

@diegostaPy
Copy link

Solution:
Adding new lines from After currentDate, line 234
week_no_start = ((currentDate.day - 1) // 7) + 1
currentday_start = (week_no_start - 1) * 7 + 1

image

@martin-rdz
Copy link
Owner

Is currentday_start used somewhere later on?

martin-rdz added a commit that referenced this issue Nov 22, 2022
though not sure what the actual problem is
@diegostaPy
Copy link
Author

yes, its used on line 240

currentday_start = (week_no - 1) * 7 + 1
currentDate = datetime.datetime.now()
week_no_start = ((currentDate.day - 1) // 7) + 1
currentday_start = (week_no_start - 1) * 7 + 1
currentDate_weekstart = datetime.datetime(
    currentDate.year,
    currentDate.month,
    currentday_start
)

@martin-rdz
Copy link
Owner

Ahh. Now I get it. The first currentday_start is then obsolete.

Hope the issue is fixed now.

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

2 participants