-
Notifications
You must be signed in to change notification settings - Fork 5
ORM created now #48
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
base: primary
Are you sure you want to change the base?
ORM created now #48
Conversation
Ebay API get category
| # Define which pages you want to scrape (you can use "/" for homepage) | ||
| pages = ["/"] | ||
|
|
||
| # Use the scraper to fetch and parse the pages | ||
| results = scraper.scrape(pages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: The line results = CheaperScraper.scraper.scrape(pages) incorrectly attempts to access scraper as a class variable.
Suggestion: results = scraper.scrape(pages) already correctly invokes the instance method.
| class UserAccount(models.Model): | ||
| email = models.EmailField(max_length=50, unique=True) | ||
| password = models.CharField(max_length=100) | ||
| password_hash = models.CharField(max_length=100, default='defaultpass123') # added default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concern: Using a default plaintext password ('defaultpass123') is insecure.
Suggestion: Avoid setting a default password, especially one that’s hardcoded and predictable. If necessary for testing, override it in fixtures or during test setup instead.
ORM models for User and Product with local DB