dev #1

Merged
Arthur merged 18 commits from dev into main 2023-12-22 22:50:23 +01:00
2 changed files with 7 additions and 6 deletions
Showing only changes of commit 65d8b4a699 - Show all commits

View File

@ -5,10 +5,10 @@ from pathlib import Path
pd_eleves = pandas.read_csv('eleves.csv') pd_eleves = pandas.read_csv('Resources/eleves.csv')
np_eleves = pd_eleves.to_numpy() np_eleves = pd_eleves.to_numpy()
pd_colles = pandas.read_csv('colles.csv') pd_colles = pandas.read_csv('Resources/colles.csv')
np_colles = pd_colles.to_numpy() np_colles = pd_colles.to_numpy()
@ -131,7 +131,7 @@ def get_langues(langues):
list[icalendar.Event] list[icalendar.Event]
""" """
liste_langues = [] liste_langues = []
p = Path(__file__).with_name('Calendars') p = Path(__file__).with_name('Resources')
p = Path(p, f"EDT_Langues.ics") p = Path(p, f"EDT_Langues.ics")
with p.open('r') as f: with p.open('r') as f:
opened_cal = icalendar.Calendar.from_ical(f.read()) opened_cal = icalendar.Calendar.from_ical(f.read())
@ -154,7 +154,7 @@ def get_calendar(groupe, langues):
break break
new_cal = icalendar.Calendar() new_cal = icalendar.Calendar()
p = Path(__file__).with_name('Calendars') p = Path(__file__).with_name('Resources')
p = Path(p, f"EDT_{moitie}.ics") p = Path(p, f"EDT_{moitie}.ics")
with p.open('r') as f: with p.open('r') as f:
@ -163,7 +163,7 @@ def get_calendar(groupe, langues):
for event in opened_cal.walk("vevent"): for event in opened_cal.walk("vevent"):
new_cal.add_component(event) new_cal.add_component(event)
p = Path(__file__).with_name('Calendars') p = Path(__file__).with_name('Resources')
p = Path(p, f"EDT_Base.ics") p = Path(p, f"EDT_Base.ics")
with p.open('r') as f: with p.open('r') as f:

View File

@ -1,5 +1,6 @@
from typing import Optional, List from typing import Optional, List
from io import BytesIO, getenv from io import BytesIO
from os import getenv
import discord import discord
from discord import app_commands from discord import app_commands