diff options
author | ttt | 2017-05-13 00:29:47 +0530 |
---|---|---|
committer | ttt | 2017-05-13 00:29:47 +0530 |
commit | abf599be33b383a6a5baf9493093b2126a622ac8 (patch) | |
tree | 4c5ab6e0d935d5e65fabcf0258e4a00dd20a5afa /sbhs_server/webcam/management | |
download | SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.gz SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.bz2 SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.zip |
added all server files
Diffstat (limited to 'sbhs_server/webcam/management')
-rw-r--r-- | sbhs_server/webcam/management/__init__.py | 0 | ||||
-rw-r--r-- | sbhs_server/webcam/management/__init__.pyc | bin | 0 -> 156 bytes | |||
-rw-r--r-- | sbhs_server/webcam/management/commands/__init__.py | 0 | ||||
-rw-r--r-- | sbhs_server/webcam/management/commands/reload_images.py | 12 |
4 files changed, 12 insertions, 0 deletions
diff --git a/sbhs_server/webcam/management/__init__.py b/sbhs_server/webcam/management/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sbhs_server/webcam/management/__init__.py diff --git a/sbhs_server/webcam/management/__init__.pyc b/sbhs_server/webcam/management/__init__.pyc Binary files differnew file mode 100644 index 0000000..be6dca2 --- /dev/null +++ b/sbhs_server/webcam/management/__init__.pyc diff --git a/sbhs_server/webcam/management/commands/__init__.py b/sbhs_server/webcam/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sbhs_server/webcam/management/commands/__init__.py diff --git a/sbhs_server/webcam/management/commands/reload_images.py b/sbhs_server/webcam/management/commands/reload_images.py new file mode 100644 index 0000000..5b735cb --- /dev/null +++ b/sbhs_server/webcam/management/commands/reload_images.py @@ -0,0 +1,12 @@ +from django.core.management.base import BaseCommand +from sbhs_server.tables.models import Board +from sbhs_server.webcam.views import load_image + +class Command(BaseCommand): + args = '' + help = 'Reloads images for all SBHS machines' + + def handle(self, *args, **options): + boards = Board.objects.all() + for b in boards: + load_image(b.mid) |