This commit is contained in:
pika 2025-03-24 14:32:57 +01:00
parent 7823be6481
commit e99b2745bd
8 changed files with 147 additions and 894 deletions

View file

@ -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,