Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-video-pipeline
Commits
baba913a
Commit
baba913a
authored
Oct 04, 2017
by
Gregory Martin
Committed by
GitHub
Oct 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28 from edx/update_admin_behavior
Update Admin Settings
parents
e1893699
fb4986f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
VEDA_OS01/admin.py
+7
-5
VEDA_OS01/models.py
+1
-1
youtube_callback/daemon.py
+1
-1
youtube_callback/sftp_id_retrieve.py
+1
-1
No files found.
VEDA_OS01/admin.py
View file @
baba913a
...
...
@@ -59,18 +59,20 @@ class EncodeAdmin(admin.ModelAdmin):
class
URLAdmin
(
admin
.
ModelAdmin
):
model
=
URL
list_display
=
[
'videoID'
,
'encode_get'
,
'encode_url'
,
'video_id_get'
,
'url_date'
,
'val_input'
,
'xuetang_input'
'encode_url'
,
'encode_get'
,
'val_input'
]
list_filter
=
[
'videoID__inst_class__institution'
]
def
encode_get
(
self
,
obj
):
return
obj
.
encode_profile
.
encode_name
def
video_id_get
(
self
,
obj
):
return
obj
.
videoID
.
edx_id
search_fields
=
[
'videoID__edx_id'
,
'videoID__client_title'
,
...
...
VEDA_OS01/models.py
View file @
baba913a
...
...
@@ -370,7 +370,7 @@ class URL (models.Model):
get_latest_by
=
'url_date'
def
__unicode__
(
self
):
return
u'
%
s :
%
s :
%
s'
.
format
(
self
.
videoID
,
self
.
encode_profile
.
encode_name
,
self
.
url_date
)
or
u''
return
u'
%
s :
%
s :
%
s'
.
format
(
self
.
videoID
.
edx_id
,
self
.
encode_profile
.
encode_name
,
self
.
url_date
)
or
u''
class
VedaUpload
(
models
.
Model
):
...
...
youtube_callback/daemon.py
View file @
baba913a
...
...
@@ -27,7 +27,7 @@ django.setup()
Defaults
"""
data_window
=
datetime
.
datetime
.
utcnow
()
.
replace
(
tzinfo
=
utc
)
-
\
timedelta
(
days
=
15
)
timedelta
(
days
=
3
)
def
get_course
(
course_id
):
...
...
youtube_callback/sftp_id_retrieve.py
View file @
baba913a
...
...
@@ -31,7 +31,7 @@ Defaults:
"""
homedir
=
expanduser
(
"~"
)
workdir
=
os
.
path
.
join
(
homedir
,
'download_data_holding'
)
YOUTUBE_LOOKBACK_DAYS
=
15
YOUTUBE_LOOKBACK_DAYS
=
4
def
callfunction
(
course
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment