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

Fix multiple days of week outputs null #283

Merged
merged 1 commit into from
May 9, 2023

Conversation

fracz
Copy link
Contributor

@fracz fracz commented May 9, 2023

fix #199

I have moved the code that adds numeric prefixes (first, second, etc) to the getSingleItemDescription. It was previously in the getDescriptionFormat and tried to find correct prefix for e.g. #3,1#2, because it took only the first weekday into consideration.

The code diff looks crazy, but if you take a closer look then you will se that I only moved the switch statement to another method and concatenated properly.

It seems to fix the problem and does not break any tests :-)

@bradymholt
Copy link
Owner

Thanks!!

@bradymholt bradymholt merged commit fc5775e into bradymholt:main May 9, 2023
fracz added a commit to SUPLA/supla-cloud that referenced this pull request May 9, 2023
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

Successfully merging this pull request may close these issues.

multiple Days of Week with hashtags is outputting null
2 participants