summaryrefslogtreecommitdiff
path: root/webcam
diff options
context:
space:
mode:
Diffstat (limited to 'webcam')
-rw-r--r--webcam/views.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/webcam/views.py b/webcam/views.py
index 54f74ee..9451695 100644
--- a/webcam/views.py
+++ b/webcam/views.py
@@ -6,6 +6,8 @@ from django.http import HttpResponse
from myadmin.views import checkadmin
from sbhs_server.tables.models import Board, Webcam
+print 'inside webcam views.py'
+
def reload(req, mid):
""" Refreshes the image of the SBHS
@@ -25,8 +27,10 @@ def show_video(req):
board = req.user.board
image_link = board.image_link()
- mid = str(board.mid)
-
+ mid = str(board.mid)
+ # if mid < 10:
+ # mid = '0'+str(mid)
+ # print 'mid',mid
# image_link = board.image_link()
return render(req, "webcam/show_video.html", {"image_link": image_link, "mid": mid})