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

Dynamic Menu Not Returning Items Based on Current Time #12

Open
pratikj697 opened this issue Oct 5, 2024 · 2 comments
Open

Dynamic Menu Not Returning Items Based on Current Time #12

pratikj697 opened this issue Oct 5, 2024 · 2 comments
Assignees
Labels
hacktoberfest-accepted Marks a PR as valid under Hacktoberfest, counting towards participant contributions.

Comments

@pratikj697
Copy link
Contributor

An issue occurs with the /api/menu endpoint of the Restaurant Management System. The goal of this endpoint is to retrieve the current menu items based on the available hours specified in the database. However, it seems that the endpoint is not returning the expected results based on the current time.

Environment:

  1. Application: Restaurant Management System
  2. Framework: Flask (Python)
  3. Database: MySQL
  4. Port: 3000
  5. Current Time: (Include the actual current time when testing)

Expected Result:
The API should return a list of menu items that are available during the current hour.

Actual Result:
The API response returns an empty list or does not return any items even though there are items in the database that should be available.

Potential Issues to Investigate:

  1. Database Values: Check if the available_time_start and available_time_end values for the menu items in the database are correctly set and fall within the range of 0 to 23 (representing hours).
  2. Time Zone: Ensure that the server's timezone matches the timezone in which the menu times are set, as a mismatch could lead to incorrect current hour calculations.
  3. Debugging Output: Consider adding debug print statements or logging the current hour and the query results to gain insight into the execution flow.

Please let me know if you need any further information or clarification. I would appreciate any insights on why this issue might be occurring and how it can be resolved and please assign this problem to me under HacktoberFest 2024 @Ayu-hack .

@Ayu-hack
Copy link
Owner

Ayu-hack commented Oct 6, 2024

Please some changes has been merged into the project. Check it and work accordingly.
Please share the screenshot of working in PR, to get it merged.
Assigned. More repos are available for pull requests, and they’re part of Hacktoberfest 2024.
Feel free to tag me in your Hacktoberfest certificate or badges LinkedIn post! 😄
👉 Follow my GitHub and connect with me on LinkedIn!
Star these repos to stay updated for next year’s Hacktoberfest!

@Ayu-hack Ayu-hack added the hacktoberfest-accepted Marks a PR as valid under Hacktoberfest, counting towards participant contributions. label Oct 6, 2024
@Ayu-hack
Copy link
Owner

Ayu-hack commented Oct 9, 2024

Please suggest something here n work on it #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Marks a PR as valid under Hacktoberfest, counting towards participant contributions.
Projects
None yet
Development

No branches or pull requests

2 participants