Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing import statement for 'datetime' module causing undefined variable error #50

Closed
Ankush0286 opened this issue Oct 3, 2024 · 3 comments · Fixed by #54
Closed

Comments

@Ankush0286
Copy link
Contributor

The codebase encounters an error due to the missing import statement for the datetime module. The variable datetime is used in the code but is not recognized, leading to a NameError indicating that 'datetime' is not defined. To resolve this, the import datetime statement needs to be added at the top of the relevant Python file.

Steps to Reproduce:

  1. Run the code that references datetime.
  2. Observe the error message: NameError: name 'datetime' is not defined.
  3. Expected Behavior: The code should execute without errors and properly utilize the datetime module.

Screenshot:
Screenshot did not import datetime

Suggested Fix: Add import datetime to the beginning of the Python script where datetime is used.

Copy link

github-actions bot commented Oct 3, 2024

👋 Thank you! Welcome to the project! Please follow these guidelines for smooth collaboration:

  1. After completing a task, add your name and details to the Contributors Table/List.
  2. Attach relevant screenshots or videos of your contribution for transparency.
  3. Tasks are assigned on a first-come, first-served basis.
    • Avoid spamming requests for already-assigned tasks.
    • Respect the queue and wait for new tasks.
  4. Propose New Ideas: Discuss new features or suggestions in the "Ideas" channel before starting work.

@Ankush0286
Copy link
Contributor Author

@Amna-Hassan04, as a participant in Girls Script Summer of Code (GSSOC), I'd like to work on this issue. Could you please assign it to me and add the GSSOC level?

@Amna-Hassan04
Copy link
Owner

assigned to you. please do link this issue when you submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants