Skip to content

Instantly share code, notes, and snippets.

@chrisking
Created October 28, 2023 18:09
Show Gist options
  • Save chrisking/95570e8a0d95ba9a2b84c808798c665a to your computer and use it in GitHub Desktop.
Save chrisking/95570e8a0d95ba9a2b84c808798c665a to your computer and use it in GitHub Desktop.
silly grocery program
Python 3.11.2 (main, Mar 23 2023, 02:57:04) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from groceriesapp.models import *
>>> sl = ShoppingList.objects.get(id=1)
>>> sl.render_shopping_list()
Canned Veggies
--------------
Whole Can Tomatoes (ounces): 119.00
Fridge Aisle
------------
eggs (items): 22.00
International Aisle
-------------------
Chinese Black Vinegar (teaspoons): 2.00
Lee Kum Kee Black Pepper Sauce (grams): 50.00
Soy Sauce (grams): 10.00
Meat
----
Flank Steak (pounds): 0.500
Near Produce
------------
Cotija Cheese (ounces): 8.00
pancetta (ounces): 8.00
Pasta / Grains
--------------
Cooked Lentils (cups): 8.125
Rice (cups): 1.00
Produce
-------
Avocado (items): 3.25
Bell Pepper (items): 0.500
Cilantro Leaves (cups): 3.25
Garlic (cloves): 18.50
Green Chillies (items): 3
Jalapeño Pepper (items): 6.50
Lime (items): 3.25
Mint Leaves (ounces): 4
Red Onion (items): 1.625
Shallot (items): 0.2500
Yellow Onion (items): 0.2500
Spices / Oils
-------------
Black Pepper (cranks): 52.50
Cornstarch (slurry): 1.00
Garlic Powder (sprinkle): 1.00
Ground Cumin (teaspoons): 0.25
Kosher Salt (teaspoons): 3.25
MSG (sprinkle): 1.00
Olive Oil (tablespoons): 3
Onion Powder (sprinkle): 1.00
Red Chilli Flakes (teaspoons): 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment