Skip to content

Commit

Permalink
fix: ERP failing at math, messing up indexing order
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jul 21, 2024
1 parent 17b5dae commit 1bc595a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mftp/notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ def fetch(headers, session, ssoToken, lsnif):
'Company': row.find('cell[4]').text.strip(),
}

if int(id_) < latest_index:
if int(id_) == 1:
logging.info(f' [NEW SESSION DETECTED] Requesting {lsnif} reset')
latest_index = 0

if int(id_) > latest_index:
elif int(id_) > latest_index:
notices.append(notice)
logging.info(f" [NEW NOTICE]: #{id_} | {notice['Type']} | {notice['Subject']} | {notice['Company']} | {notice['Time']}")
else:
Expand Down

0 comments on commit 1bc595a

Please sign in to comment.