Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scraper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ cp .env.example .env
nano .env # or use your preferred editor
```

Edit the `.env` file with your MySQL configuration (optional - defaults match Docker setup):
Edit the `.env` file with your MySQL configuration:

```ini
DB_HOST=localhost
Expand Down
1 change: 0 additions & 1 deletion scraper/database_schema.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-- Database schema for FEF UNICAMP activities
-- Uses the existing 'gde' database (Docker instance)
-- If you need to create the database separately, uncomment the line below:
-- CREATE DATABASE IF NOT EXISTS gde CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

USE gde;
Expand Down
6 changes: 3 additions & 3 deletions scraper/fef_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
# Can be overridden via .env file
DB_CONFIG = {
'host': os.getenv('DB_HOST', 'localhost'),
'database': os.getenv('DB_NAME', 'gde'), # Changed from 'fef_activities' to 'gde'
'user': os.getenv('DB_USER', 'Web'), # Changed from 'root' to 'Web'
'password': os.getenv('DB_PASSWORD', 'gde123'), # Changed from '' to 'gde123'
'database': os.getenv('DB_NAME', 'gde'),
'user': os.getenv('DB_USER', 'Web'),
'password': os.getenv('DB_PASSWORD', 'gde123'),
'charset': 'utf8mb4',
'collation': 'utf8mb4_unicode_ci'
}
Expand Down
6 changes: 3 additions & 3 deletions scraper/query_activities.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

DB_CONFIG = {
'host': os.getenv('DB_HOST', 'localhost'),
'database': os.getenv('DB_NAME', 'gde'), # Changed from 'fef_activities' to 'gde'
'user': os.getenv('DB_USER', 'Web'), # Changed from 'root' to 'Web'
'password': os.getenv('DB_PASSWORD', 'gde123'), # Changed from '' to 'gde123'
'database': os.getenv('DB_NAME', 'gde'),
'user': os.getenv('DB_USER', 'Web'),
'password': os.getenv('DB_PASSWORD', 'gde123'),
}


Expand Down