Skip to content

🐞 Critical Bug β€” Variable Name Error in Date Validation (DeeringAutoDownloadCode.py)Β #61

@orbaps

Description

@orbaps

Summary

A critical variable naming bug exists in the validate_and_compare_dates() function of DeeringAutoDownloadCode.py.
The function defines parameters start_date and end_date, but references undefined variables start_date_input and end_date_input, causing a NameError and breaking the core download workflow.

def validate_and_compare_dates(start_date, end_date):
    # Parameters are start_date, end_date but code uses:
    start_date = datetime.strptime(start_date_input, '%Y-%m-%d')  # ❌ Undefined variable
    end_date = datetime.strptime(end_date_input, '%Y-%m-%d')      # ❌ Undefined variable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions