From 6c5308ed933cc266b68c423797ad8b4947da3e26 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Wed, 24 Jun 2020 18:24:48 +0200 Subject: [PATCH] Changed script names --- .gitignore | 2 ++ dashboard/{handler.py => dashboard_handler.py} | 0 dashboard/dashboard_update.sh | 2 +- menu/{handler.py => menu_handler.py} | 0 menu/menu_update.sh | 2 +- 5 files changed, 4 insertions(+), 2 deletions(-) rename dashboard/{handler.py => dashboard_handler.py} (100%) rename menu/{handler.py => menu_handler.py} (100%) diff --git a/.gitignore b/.gitignore index 5cabe02..9d0cde6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ /facebook/facebook_data.json /dashboard/dashboard_data.json /menu/menu_data.json +*/log +*/err \ No newline at end of file diff --git a/dashboard/handler.py b/dashboard/dashboard_handler.py similarity index 100% rename from dashboard/handler.py rename to dashboard/dashboard_handler.py diff --git a/dashboard/dashboard_update.sh b/dashboard/dashboard_update.sh index 2924683..48ab88e 100755 --- a/dashboard/dashboard_update.sh +++ b/dashboard/dashboard_update.sh @@ -7,5 +7,5 @@ cd "$HOME"/public_html/v2/dashboard || exit # Update the dashboard with the new machine list touch lock -python3 handler.py > log 2> err +python3 dashboard_handler.py > log 2> err rm lock \ No newline at end of file diff --git a/menu/handler.py b/menu/menu_handler.py similarity index 100% rename from menu/handler.py rename to menu/menu_handler.py diff --git a/menu/menu_update.sh b/menu/menu_update.sh index 9c9b514..ce7f915 100755 --- a/menu/menu_update.sh +++ b/menu/menu_update.sh @@ -1,5 +1,5 @@ #!/bin/bash touch lock -curl "https://webservices-v2.crous-mobile.fr/ws/v1/regions/5/restaurants/114/menus" > menu_data.json && python3 handler.py > log 2> err +curl "https://webservices-v2.crous-mobile.fr/ws/v1/regions/5/restaurants/114/menus" > menu_data.json && python3 menu_handler.py > log 2> err rm lock