wip
This commit is contained in:
parent
7823be6481
commit
e99b2745bd
8 changed files with 147 additions and 894 deletions
|
@ -21,9 +21,8 @@ def index():
|
|||
# Get recent files
|
||||
recent_files = File.query.filter_by(user_id=current_user.id).order_by(File.created_at.desc()).limit(5).all()
|
||||
|
||||
# Add icon_class to each file
|
||||
for file in recent_files:
|
||||
file.icon_class = file.get_icon_class()
|
||||
# We don't need to set icon_class as it's already a property
|
||||
# Just pass the files to the template
|
||||
|
||||
return render_template('dashboard/index.html',
|
||||
file_count=file_count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue