From 3456abe90196d5894fc5f8aa0383d02b894b1f2d Mon Sep 17 00:00:00 2001 From: vijeth-aradhya Date: Thu, 10 Aug 2017 19:32:29 +0530 Subject: Fix percentage reporting Report transcoding_progress as the overall percent of all resolutions. Modify Logging. Closes #6 --- mediagoblin/db/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mediagoblin/db') diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index f4644b9f..cc06b12f 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -25,7 +25,7 @@ import datetime from sqlalchemy import Column, Integer, Unicode, UnicodeText, DateTime, \ Boolean, ForeignKey, UniqueConstraint, PrimaryKeyConstraint, \ - SmallInteger, Date, types + SmallInteger, Date, types, Float from sqlalchemy.orm import relationship, backref, with_polymorphic, validates, \ class_mapper from sqlalchemy.orm.collections import attribute_mapped_collection @@ -542,7 +542,7 @@ class MediaEntry(Base, MediaEntryMixin, CommentingMixin): fail_error = Column(Unicode) fail_metadata = Column(JSONEncoded) - transcoding_progress = Column(SmallInteger) + transcoding_progress = Column(Float, default=0) queued_media_file = Column(PathTupleWithSlashes) -- cgit v1.2.3