Skip to content

Commit

Permalink
Fix dump csv
Browse files Browse the repository at this point in the history
  • Loading branch information
gdvcamargo committed Dec 19, 2024
1 parent 08774fd commit fdcf18e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions server/scripts/dumps/buildings.csv
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
id,name,created_by_id,updated_at
2,Elétrica,5,2024-07-31 22:04:12.333536
3,Produção,5,2024-07-31 22:04:12.333536
4,Civil,5,2024-07-31 22:04:12.333536
1,Biênio,2,2024-07-31 22:04:12.333536
5,Metalúrgica,5,2024-07-31 22:04:12.333536
6,Mecânica,5,2024-07-31 22:04:12.333536
7,Química,5,2024-08-02 19:15:49.519259
8,Minas e Petróleo,5,2024-08-02 19:15:49.519259
2,Elétrica,3,2024-07-31 22:04:12.333536
3,Produção,3,2024-07-31 22:04:12.333536
4,Civil,3,2024-07-31 22:04:12.333536
1,Biênio,3,2024-07-31 22:04:12.333536
5,Metalúrgica,3,2024-07-31 22:04:12.333536
6,Mecânica,3,2024-07-31 22:04:12.333536
7,Química,3,2024-08-02 19:15:49.519259
8,Minas e Petróleo,3,2024-08-02 19:15:49.519259
2 changes: 1 addition & 1 deletion server/scripts/dumps/load_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def load_csv_to_db(csv_file: str) -> None:
projector=row['projector'], # type: ignore
air_conditioning=row['air_conditioning'], # type: ignore
updated_at=row['updated_at'], # type: ignore
created_by_id=row['created_by_id'], # type: ignore
created_by_id=3, # type: ignore
building_id=row['building_id'], # type: ignore
id=row['id'], # type: ignore
)
Expand Down

0 comments on commit fdcf18e

Please sign in to comment.