Skip to content
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

feat(timetable): handle absences property #16

Open
Vexcited opened this issue Mar 19, 2024 · 0 comments
Open

feat(timetable): handle absences property #16

Vexcited opened this issue Mar 19, 2024 · 0 comments
Assignees
Labels
core Related to 'pawnote' crate itself. enhancement New feature or request

Comments

@Vexcited
Copy link
Member

Vexcited commented Mar 19, 2024

When we're in "Mesure conservatoire", we have those :

Image

{
  "listeAbsences": {
    "_T": 24,
    "V": []
  },
  "listeRetards": {
    "_T": 24,
    "V": []
  },
  "listePunitions": {
    "_T": 24,
    "V": []
  },
  "listeInfirmeries": {
    "_T": 24,
    "V": []
  },
  "joursCycle": {
    "_T": 24,
    "V": [
      {
        "jourCycle": 3,
        "exclusionsEtab": {
          "placeDebut": 60,
          "placeFin": 79,
          "MC": true
        }
      }
    ]
  }
}

When we're absent, it doesn't show in the UI but we can get them in the response :

{
  "listeAbsences": {
    "_T": 24,
    "V": [
      {
        "N": "1#oMFwaR64OBCud0Uho_2_nBFemERhb5tz3rJPrCbPwHA",
        "placeDebut": 60,
        "placeFin": 62,
        "motif": {
          "_T": 24,
          "V": {
            "L": "Motif non encore connu",
            "N": "92#ZMzqOMkFwUc1xfEKaOm4gvmAA4cvRlS7Oia9tH8OYNA",
            "couleur": "#FFFFFF"
          }
        }
      }
    ]
  },
  "listeRetards": {
    "_T": 24,
    "V": []
  },
  "listePunitions": {
    "_T": 24,
    "V": []
  },
  "listeInfirmeries": {
    "_T": 24,
    "V": []
  },
  "joursCycle": {
    "_T": 24,
    "V": [
      {
        "jourCycle": 3
      }
    ]
  }
}
@Vexcited Vexcited changed the title chore(timetable): check if able to see if we're kicked from a lesson or not feat(timetable): able to know if we're kicked from a lesson or not Mar 19, 2024
@Vexcited Vexcited self-assigned this Mar 19, 2024
@Vexcited Vexcited added the enhancement New feature or request label Mar 19, 2024
@Vexcited Vexcited added this to the 0.20.0 milestone Mar 19, 2024
@Vexcited Vexcited modified the milestones: 0.20.0, 0.21.0 Apr 18, 2024
@Vexcited Vexcited modified the milestones: 0.21.0, 0.22.0 May 16, 2024
@Vexcited Vexcited changed the title feat(timetable): able to know if we're kicked from a lesson or not feat(timetable): handle absences property May 16, 2024
@Vexcited Vexcited modified the milestones: 0.22.0, 1.1.0 Jul 10, 2024
@Vexcited Vexcited added the core Related to 'pawnote' crate itself. label Jul 17, 2024
@Vexcited Vexcited modified the milestones: 1.1.0, 1.2.0 Aug 28, 2024
@Vexcited Vexcited removed this from the 1.2.0 milestone Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to 'pawnote' crate itself. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant