Skip to content

This application serves as a tracker for girl scout cookies for parents to submit cookie orders and for cookie crew to manage receipt and dollars.

Notifications You must be signed in to change notification settings

dataRunner2/gscookies

Repository files navigation

Introduction

Inilize Elastic

Using the mappings jsons and the code in "admin_show_session" create the index template for each of the indices Update the index names in Home.py file for each index create an index

create elastic api key to put into Streamlit Secrets - upload .streamlit secrets.toml for local runs

Launch Streamlit

Open terminal > activate the environment source /Users/jennifer_home/Documents/08d_GSCookies/gscookies/.venv/bin/activate

if still not working: poetry config virtualenvs.path /Users/jennifer_home/Library/Caches/pypoetry/virtualenvspoetry config virtualenvs.in-project true Forces the virtual environment into this project poetry config virtualenvs.in-project true poetry shell source $(poetry env info --path)/bin/activate

Launch streamlit app

TODO

Take the OpC out of the counts for # pending boxes Add diagram to training page for process flows fix booth orders page fix manage orders page add feature to import ebudde "all DOC orders" report - splice it and put it into our orders. so we match 100%.

Status logic

New Order = pending added to Ebudde = ordered order picked up = picked up paid = paid

add ingest pipeline PUT _ingest/pipeline/update_status_pipeline { "description": "Pipeline to update status field based on addEbudde, pickedUp, and paid values", "processors": [ { "script": { "lang": "painless", "source": """ if (ctx.addEbudde == true && ctx.pickedUp == true && ctx.paid == true) { ctx.status = "Paid"; } else if (ctx.addEbudde == true && ctx.pickedUp == true) { ctx.status = "Picked Up"; } else if (ctx.addEbudde == true) { ctx.status = "Ordered"; } else if (ctx.pickedUp == true) { ctx.status = "Needs Processing"; } else if (ctx.paid == true) { ctx.status = "Needs Processing"; } """ } } ] }

About

This application serves as a tracker for girl scout cookies for parents to submit cookie orders and for cookie crew to manage receipt and dollars.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published