Skip to content

Commit

Permalink
Bug fix and new pronotepy release
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha committed Dec 29, 2022
1 parent 8106c64 commit c232c6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ def init(self,p2mVersion,dbVersion):
, reasons TEXT
, circumstances TEXT
, nature TEXT
, duration
, duration TEXT
, homework TEXT
, exclusion TEXT
, PRIMARY KEY(studentname,pid,punid))''')
, PRIMARY KEY(studentname,period_name,period_start,pundate,reasons))''')
# Commit
self.commit()

Expand Down Expand Up @@ -443,7 +443,7 @@ def _loadAbsenceShortList(self,student):
# not collecting all
datestart = datetime.date.today() - relativedelta(days=30)
datestart = datestart.strftime("%Y/%m/%d %H:%M")
query = f"SELECT * FROM absences WHERE studentname like '{studentname}' and from_date >= '{datestart}' and period_name like 'Année continue'"
query = f"SELECT * FROM absences WHERE studentname like '{studentname}' and from_date >= '{datestart}' and period_name like 'Année continue' order by from_date DESC"
self.cur.execute(query)
queryResult = self.cur.fetchall()
# Create object Absence
Expand Down
2 changes: 1 addition & 1 deletion app/requirement.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ envparse
schedule
paho-mqtt
pycron
pronotepy==2.7.0
pronotepy==2.8.0
unidecode

0 comments on commit c232c6d

Please sign in to comment.