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

Code CLI script #5

Closed
10 tasks done
freezed opened this issue Jul 21, 2018 · 1 comment
Closed
10 tasks done

Code CLI script #5

freezed opened this issue Jul 21, 2018 · 1 comment

Comments

@freezed
Copy link
Owner

freezed commented Jul 21, 2018

  • Gets category list
  • Prompts it with an index
  • Asks the user to enter the index of the selected category
    • If index is not valid, re-ask
  • Lists all products
  • Asks the user to enter the index of the selected product
    • If index is not valid, re-ask
  • Shows the 1st product in the same category with the lowest nutriscore
  • Saves if user choose it
  • Adds access to substitutes backed-up
@freezed freezed added this to To do in [Initial] - Evaluated work via automation Jul 21, 2018
@freezed freezed added TODO Get to work and removed TODO Get to work labels Jul 21, 2018
@freezed freezed self-assigned this Jul 21, 2018
@freezed freezed moved this from To do to In progress in [Initial] - Evaluated work Aug 4, 2018
freezed added a commit that referenced this issue Aug 4, 2018
freezed added a commit that referenced this issue Aug 4, 2018
freezed added a commit that referenced this issue Aug 7, 2018
- adds index range
- adds quit option
- makes code compliant with pylint & flake8
freezed added a commit that referenced this issue Aug 7, 2018
- function 'get_data_list()' will be used for products either
- changed some constant/variables name for better comprehension
freezed added a commit that referenced this issue Aug 7, 2018
freezed added a commit that referenced this issue Aug 7, 2018
- Reformates code to improve readability
- Renames 3rd field of SELECT request option to harmonize data processing
- TODO : clarify messaging (CF 'WTF' strings)
freezed added a commit that referenced this issue Aug 7, 2018
FIX : clarify messaging (CF 'WTF' strings)
freezed added a commit that referenced this issue Aug 7, 2018
- Use 'id' to select
- Adds NOT NULL for product to avoid absurd substitut request
freezed added a commit that referenced this issue Aug 7, 2018
- Truncates the name in the 2 column menu (but keep full name in others places)
@freezed
Copy link
Owner Author

freezed commented Aug 8, 2018

Closed by 47bf7a6

@freezed freezed closed this as completed Aug 8, 2018
[Initial] - Evaluated work automation moved this from In progress to Done Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant