Skip to content

Commit

Permalink
fix: dummy update
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaaDev committed Jan 7, 2025
1 parent 2aa81cf commit dad0044
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 352 deletions.
2 changes: 1 addition & 1 deletion dummy_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DELETE FROM public.levels_fixture;
DELETE FROM public.prop;

COPY public.levels_fixture FROM stdin;
1 2024_01_01 00:00:00 2025_01_01 00:00:00 40 1 3
1 2025_01_01 00:00:00 2026_01_01 00:00:00 40 1 3
\.

COPY public.user FROM stdin;
Expand Down
8 changes: 0 additions & 8 deletions src/api/defense/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,6 @@ pub fn get_map_details_for_attack(
} else {
map_space
}
// if block_type.building_type == ROAD_ID {
// if block_type.category == BlockCategory::Mine {
// map_space.block_type_id = ROAD_ID;
// }
// map_space
// } else {
// map_space
// }
})
.collect();
let blocks = fetch_building_blocks(conn, &map.player)?;
Expand Down
4 changes: 2 additions & 2 deletions src/api/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ pub fn get_current_levels_fixture(conn: &mut PgConnection) -> Result<LevelsFixtu
use crate::schema::levels_fixture;
let current_date = Local::now().naive_local();

Check failure on line 58 in src/api/util.rs

View workflow job for this annotation

GitHub Actions / lint

unused variable: `current_date`

Check warning on line 58 in src/api/util.rs

View workflow job for this annotation

GitHub Actions / check

unused variable: `current_date`
let level: LevelsFixture = levels_fixture::table
.filter(levels_fixture::start_date.le(current_date))
.filter(levels_fixture::end_date.gt(current_date))
// .filter(levels_fixture::start_date.le(current_date))
// .filter(levels_fixture::end_date.gt(current_date))
.first(conn)
.map_err(|err| DieselError {
table: "levels_fixture",
Expand Down
341 changes: 0 additions & 341 deletions src/models__.rs

This file was deleted.

Loading

0 comments on commit dad0044

Please sign in to comment.