Skip to content

Tag stats not showing up – unreachable code in views.py #3

@vincent-liuyuwei

Description

@vincent-liuyuwei

Hello!Just noticed in entries/views.py there’s a return before the part where tag_labels and tag_counts are defined. That makes the tag stats code unreachable, so those values never get passed to the template.

Suggestion:
• Remove the first return
• Put everything into one final return with all the context you need

Best regards,
Yuwei Liu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions