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

daysToShow doesn't work properly #37

Open
dlion opened this issue Jul 7, 2024 · 3 comments
Open

daysToShow doesn't work properly #37

dlion opened this issue Jul 7, 2024 · 3 comments

Comments

@dlion
Copy link

dlion commented Jul 7, 2024

Don't know why but I can't set a different amount of days to show:

This is the code

```habittracker
{
	"path": "Habits/", "daysToShow": "31"
}

This is how the plugin render it:

image

Plugin Version: 1.4.2
Obsidian Version: 1.6.5

With the debug option activated:

{
  "path": "Habits/",
  "lastDisplayedDate": "2024-07-07",
  "daysToShow": "31",
  "daysToLoad": "311",
  "rootElement": {},
  "habitsGoHere": {},
  "debug": true
}
@dlion
Copy link
Author

dlion commented Jul 7, 2024

Update:

Modifying from this

```habittracker
{
	"path": "Habits/", "daysToShow": "31"
}

to this

```habittracker
{
	"path": "Habits/", "daysToShow": 31
}

It works correctly:

image

@zincplusplus
Copy link
Owner

Daaamn! That's a good catch. I'm working on V2 right now, which is a complete rewrite of the code which makes debugging so much easier. I'll soon push it and make sure this is patched there as well. I'm happy you found a solution in the meantime 🙏

@athachai29
Copy link

Should we've to update the README.md to avoid misunderstandings about this?

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

3 participants