Class User doesn't have field `uploader` any more, instead there
`actor`. Fix several uses of `uploader` to `actor`.
request = context['request']
user = request.user
num_queued = MediaEntry.query.filter_by(
- uploader=user.id, state=u'processing').count()
+ actor=user.id, state=u'processing').count()
context['num_queued'] = num_queued
num_failed = MediaEntry.query.filter_by(
- uploader=user.id, state=u'failed').count()
+ actor=user.id, state=u'failed').count()
context['num_failed'] = num_failed
return context
-
+
hooks = {
'setup': setup_plugin,
request, 'mediagoblin.user_pages.user_home',
user=user.username)
# Get media entries which are in-processing
- entries = (MediaEntry.query.filter_by(uploader=user.id)
+ entries = (MediaEntry.query.filter_by(actor=user.id)
.order_by(MediaEntry.created.desc()))
try: