Skip to content

Commit

Permalink
Publish timetable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximMaximS committed Jun 13, 2024
1 parent 614ee12 commit 85dcf20
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rezvrh_scraper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rezvrh_scraper"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
description = "Bakalari scraper"
license = "MIT-0"
Expand Down
4 changes: 2 additions & 2 deletions rezvrh_scraper/src/modules/timetable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ pub enum Type {

#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
pub struct Timetable {
hours: Vec<Hour>,
days: Vec<Day>,
pub hours: Vec<Hour>,
pub days: Vec<Day>,
}

#[derive(Debug, Error)]
Expand Down
4 changes: 2 additions & 2 deletions rezvrh_scraper/src/modules/timetable/day.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use thiserror::Error;
/// Struct that hold one day of timetable
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
pub struct Day {
date: Option<NaiveDate>,
lessons: Vec<Vec<Lesson>>,
pub date: Option<NaiveDate>,
pub lessons: Vec<Vec<Lesson>>,
}

/// Day parse error
Expand Down
4 changes: 2 additions & 2 deletions rezvrh_scraper/src/modules/timetable/hour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use thiserror::Error;
/// Struct that hold one hour of timetable (header)
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
pub struct Hour {
start: NaiveTime,
duration: i64,
pub start: NaiveTime,
pub duration: i64,
}

/// Hour parse error
Expand Down

0 comments on commit 85dcf20

Please sign in to comment.