Skip to content

API uses latest re-upload author instead of original submission author #448

@ayushshukla1807

Description

@ayushshukla1807

Problem:
Wiki Loves competitions demand that the original file upload date and the original author are credited for an entry, regardless of subsequent file overwrites or re-uploads.
Currently, loaders.py::make_entry extracts img_timestamp and img_user as the primary dataset.

Impact:
When a file is flagged as a re-upload (oi_archive_name is present), Montage incorrectly credits the newest author and timestamp, which breaks competition disqualification rules (e.g. dq_by_upload_date).

Proposed Solution:
When oi_archive_name indicates a previous version exists, make_entry must extract rec_img_timestamp and rec_img_user as the primary entry data, and route the newer img_ variables strictly to the flags["reupload"] dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions