added small runbook and switched deals for items

This commit is contained in:
Askill 2024-08-15 18:27:35 +02:00
parent e4b93f3103
commit 2f85661a8b
2 changed files with 12 additions and 2 deletions

10
RUNBOOK.md Normal file
View File

@ -0,0 +1,10 @@
# How to run this project
Start The API Server:
pip install -r requirements.txt
python ShyBadger/run.py
Starts server on port 80, calling the root redirects to an unfinished OpenAPI spec site
See `ShyBadger/test.py` for a usage example of the `BasketService`

View File

@ -10,8 +10,8 @@ class DealsService:
def __init__(self) -> None:
# placeholder data
# promiootion can be read dznamically from db
self.promotions["A0001"].append("two_for_one")
self.promotions["A0002"].append("ten_percent_off")
self.promotions["A0002"].append("two_for_one")
self.promotions["A0001"].append("ten_percent_off")
# deal behavior needs to be programmed an can only be
# changed with the rollout of a new version,