minor code cleanup, removed debug
This commit is contained in:
4
files.py
4
files.py
@@ -142,14 +142,12 @@ class FileData():
|
||||
fsize = round(os.stat(file).st_size/(1024*1024))
|
||||
fname=file.replace(path, "")
|
||||
file_obj = Files( name=fname, type=ftype, size_mb=fsize, hash=fhash, thumbnail=fthumbnail )
|
||||
print( file_obj )
|
||||
db.session.add(file_obj)
|
||||
else:
|
||||
print( "{} - {} is OLDER than {}".format( file, stat.st_ctime, last_import_date ) )
|
||||
last_import_date_obj[0].value = str(time.time())
|
||||
db.session.commit()
|
||||
file_obj = Files.query.filter().all()
|
||||
self.view_list = file_obj
|
||||
self.view_list = Files.query.all()
|
||||
return self
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user