Skip to content

Commit

Permalink
Merge pull request #16 from ThilakReddyy/develop
Browse files Browse the repository at this point in the history
update:logic
  • Loading branch information
ThilakReddyy committed Jun 10, 2023
2 parents cd6208d + 90774dd commit 3fcd197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jntuhresults/Executables/jntuhresultscraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def fetch_result(self, session, exam_code, payload):

# Prepare the payload for the HTTP POST request
payloaddata="?&examCode="+exam_code+payload+self.roll_number

# Make the HTTP POST request and print the response text
async with session.get(self.url+payloaddata) as response:
return await response.text()
Expand Down Expand Up @@ -111,7 +111,7 @@ def scrape_results(self, semester_code, response):
self.results["Results"][semester_code][subject_code]["subject_grade"]!='F' and
self.results["Results"][semester_code][subject_code]["subject_grade"]!='Ab' and
self.results["Results"][semester_code][subject_code]["subject_grade"]!='-' and
self.results["Results"][semester_code][subject_code]["subject_grade"]<subject_grade):
self.grades_to_gpa[self.results["Results"][semester_code][subject_code]["subject_grade"]]>self.grades_to_gpa[subject_grade]):
continue

# Store Subject details in results dictionary
Expand Down

0 comments on commit 3fcd197

Please sign in to comment.