Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Dockerfile
Dockerfile
2 changes: 1 addition & 1 deletion lunchbot/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ <h4>Logs:</h4>
</script>
</body>

</html>
</html>
67 changes: 0 additions & 67 deletions lunchbot/website.py

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ pre-commit
python-dotenv
requests
ruff
selenium
selenium
2 changes: 1 addition & 1 deletion scripts/run_lunchbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def main():
# add which canteen
+ "|" + " | ".join([dish["canteen"] for dish in list_of_dishes]) + " |\n"
# add the images
+ "|" + " | ".join([f" ![preview {dish['generation_info_tag']}]({dish['image_url']} =200)"
+ "|" + " | ".join([f" ![preview {dish['generation_info_tag']}]({dish['image_url']} =200)"
for dish in list_of_dishes]) + " |\n"
)
# fmt: on
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# i.e. do ./scripts/run_website.sh in the root of the repo

source setup.sh
python lunchbot/website.py
python lunchbot/website.py
4 changes: 1 addition & 3 deletions scripts/send_message.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import logging
import os
from subprocess import run # nosec
from urllib import request # nosec
import argparse

from dotenv import load_dotenv
Expand Down Expand Up @@ -46,4 +44,4 @@ def main(message):

if __name__ == "__main__":
args = parser.parse_args()
main(message=args.message)
main(message=args.message)
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

source .env
source /app/venv_container/bin/activate
export PYTHONPATH=$PWD:$PYTHONPATH
export PYTHONPATH=$PWD:$PYTHONPATH