Skip to content

Refactor: Update Inventory and process_order to use numerical IDs #17

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seer-by-sentry[bot]
Copy link

@seer-by-sentry seer-by-sentry bot commented Jun 5, 2025

Fixes ANDROID-19. The issue was that: Flask inventory for item ID 3 insufficient, causing "Not enough inventory" exception, leading to 500 error, triggering Android exception.

  • Updated the Inventory dictionary to use numerical IDs instead of string keys.
  • Modified the process_order function to handle numerical IDs when checking inventory and updating stock.
  • Added more example products to the inventory.

This fix was generated by Seer in Sentry, triggered by [email protected]. 👁️ Run ID: 60738

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.

0 participants