Skip to content

Commit 44fffea

Browse files
final ui tweaks fixed
1 parent 9c2b0f8 commit 44fffea

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

db.sqlite3

0 Bytes
Binary file not shown.

templates/showplaylistcontent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{% csrf_token %}
2727
Share this playlist with:
2828
<input placeholder="Please enter a correct username" type="text" name="shareduser" class="form-control"><br>
29-
<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span>&nbspCreate</button>
29+
<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span>&nbspShare</button>
3030
</form>
3131

3232
<br>

users/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,17 @@ def showplaylistcontent(request,offset):
157157

158158
@login_required(login_url="/login/")
159159
def playaplaylist(request,offset):
160-
vidcount = 0
160+
161161
offsetdata = offset.split('/')
162162
playlist = playlists.objects.get(id = offset[0])
163163
songs = playlistsongs.objects.filter(userdetails = request.user, playlist = playlist)
164164
if(offsetdata[1]=='shuffle=true'):
165165
songs = songs.order_by('?')
166166

167167
videoId = ''
168+
vidcount = 0
168169
for song in songs:
169-
if vidcount==0:
170+
if vidcount == 0:
170171
firstvid = song.videoid
171172
else:
172173
videoId = videoId + song.videoid + ','

users/views.pyc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)