WIP
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from random import randrange
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
class Exercise(models.Model):
|
class Exercise(models.Model):
|
||||||
@@ -31,7 +32,10 @@ class Exercise(models.Model):
|
|||||||
return str(settings.MEDIA_URL) + "exercise_videos/" + self.name.replace(" ", "_") + ".mp4"
|
return str(settings.MEDIA_URL) + "exercise_videos/" + self.name.replace(" ", "_") + ".mp4"
|
||||||
|
|
||||||
def nsfw_video_url(self):
|
def nsfw_video_url(self):
|
||||||
return str(settings.MEDIA_URL) + "nsfw_exercise_videos/" + self.name.replace(" ", "_") + ".mp4"
|
name = self.name
|
||||||
|
if name == "Recover":
|
||||||
|
name = name + "_" + str(randrange(1,6))
|
||||||
|
return str(settings.MEDIA_URL) + "nsfw_exercise_videos/" + name.replace(" ", "_") + ".mp4"
|
||||||
|
|
||||||
def audio_url(self):
|
def audio_url(self):
|
||||||
return str(settings.MEDIA_URL) + "exercise_audio/" + self.name.replace(" ", "_") + ".m4a"
|
return str(settings.MEDIA_URL) + "exercise_audio/" + self.name.replace(" ", "_") + ".m4a"
|
||||||
BIN
media/nsfw_exercise_videos/Recover_2.mp4
Normal file
BIN
media/nsfw_exercise_videos/Recover_2.mp4
Normal file
Binary file not shown.
BIN
media/nsfw_exercise_videos/Recover_3.mp4
Normal file
BIN
media/nsfw_exercise_videos/Recover_3.mp4
Normal file
Binary file not shown.
BIN
media/nsfw_exercise_videos/Recover_4.mp4
Normal file
BIN
media/nsfw_exercise_videos/Recover_4.mp4
Normal file
Binary file not shown.
BIN
media/nsfw_exercise_videos/Recover_5.mp4
Normal file
BIN
media/nsfw_exercise_videos/Recover_5.mp4
Normal file
Binary file not shown.
Reference in New Issue
Block a user