This repository has been archived by the owner on Nov 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remaining locations which are supported by current implementation (#8)
* correct some prices and add some missing ones * solve multi row dishes problem (see comment in changes) * allow location_id as parameter and add missing locations which have same interface and works with this implementation * adapt the cli for the new locations * adapt parse.sh for the new locations * adapt README for the new locations * prices , -> . * update tests „self service“ * switch to just "individual"
- Loading branch information
Showing
6 changed files
with
116 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
#!/bin/sh | ||
mkdir dist | ||
python src/main.py mensa-garching -j ./dist/mensa-garching | ||
python src/main.py mensa-arcisstrasse -j ./dist/mensa-arcisstrasse | ||
python src/main.py stubistro-grosshadern -j ./dist/stubistro-grosshadern | ||
python src/main.py fmi-bistro -j ./dist/fmi-bistro | ||
python src/main.py ipp-bistro -j ./dist/ipp-bistro | ||
tree dist/ | ||
#!/bin/bash | ||
|
||
# --parents prevents error exit if folder already exists | ||
mkdir --parents dist | ||
|
||
loc_list=( "mensa-arcisstr" "mensa-arcisstrasse" "mensa-garching" "mensa-leopoldstr" "mensa-lothstr" \ | ||
"mensa-martinsried" "mensa-pasing" "mensa-weihenstephan" "stubistro-arcisstr" "stubistro-goethestr" \ | ||
"stubistro-großhadern" "stubistro-grosshadern" "stubistro-rosenheim" "stubistro-schellingstr" "stucafe-adalbertstr" \ | ||
"stucafe-akademie-weihenstephan" "stucafe-boltzmannstr" "stucafe-garching" "stucafe-karlstr" "stucafe-pasing" \ | ||
"ipp-bistro" "fmi-bistro" ) | ||
|
||
for loc in "${loc_list[@]}"; do | ||
python src/main.py "$loc" --jsonify "./dist/$loc" | ||
done | ||
|
||
tree dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters