diff --git a/jntuhresults/Executables/jntuhresultscraper.py b/jntuhresults/Executables/jntuhresultscraper.py index 70f8a294..cc6a06b9 100644 --- a/jntuhresults/Executables/jntuhresultscraper.py +++ b/jntuhresults/Executables/jntuhresultscraper.py @@ -20,42 +20,36 @@ def __init__(self, roll_number): # Exam codes for different regulations and semesters self.exam_codes={ - "btech": - { - "R18": - { - "1-1": ["1323", "1358", "1404", "1430", "1467", "1504", "1572", "1615", "1658"], - "1-2": ["1356", "1363", "1381", "1435", "1448", "1481", "1503", "1570", "1620", "1622", "1656"], - "2-1": ["1391", "1425", "1449", "1496", "1560", "1610", "1628"], - "2-2": ["1437", "1447", "1476", "1501", "1565", "1605", "1627"], - "3-1": ["1454", "1491", "1550", "1590", "1626", "1639", "1645", "1655"], - "3-2": ["1502", "1555", "1595", "1625", "1638", "1649", "1654"], - "4-1": ["1545", "1585", "1624", "1640", "1644", "1653"], - "4-2": ["1580", "1600", "1623"] - }, - "R22": - { - "1-1":["1662"] + 'btech': { + 'R18': { + '1-1': ['1323', '1358', '1404', '1430', '1467', '1504', '1572', '1615', '1658'], + '1-2': ['1356', '1363', '1381', '1435', '1448', '1481', '1503', '1570', '1620', '1622', '1656'], + '2-1': ['1391', '1425', '1449', '1496', '1560', '1610', '1628', '1667'], + '2-2': ['1437', '1447', '1476', '1501', '1565', '1605', '1627', '1663'], + '3-1': ['1454', '1491', '1550', '1590', '1626', '1639', '1645', '1655'], + '3-2': ['1502', '1555', '1595', '1625', '1638', '1649', '1654'], + '4-1': ['1545', '1585', '1624', '1640', '1644', '1653'], + '4-2': ['1580', '1600', '1623'] + }, + 'R22': { + '1-1': ['1662'] } }, - "bpharmacy": - { - "R17": - { - '1-1': ['519', '537', '577', '616', '643', '683', '722', '781', '824', '832'], - '1-2': ['517', '549', '575', '591', '648', '662', '698', '727', '779', '829', '831'], - '2-1': ['532', '570', '638', '673', '717', '769', '819'], - '2-2': ['558', '611', '650', '661', '693', '711', '774', '814'], - '3-1': ['597', '633', '668', '712', '759', '799', '837'], - '3-2': ['655', '660', '688', '710', '764', '804', '841'], - '4-1': ['663', '705', '754', '794', '832', '836'], - '4-2': ['678', '700', '789', '809'] - + 'bpharmacy': { + 'R17': { + '1-1': ['519', '537', '577', '616', '643', '683', '722', '781', '824', '832'], + '1-2': ['517', '549', '575', '591', '648', '662', '698', '727', '779', '829', '831'], + '2-1': ['532', '570', '638', '673', '717', '769', '819', '849'], + '2-2': ['558', '611', '650', '661', '693', '711', '774', '814', '845'], + '3-1': ['597', '633', '668', '712', '759', '799', '837'], + '3-2': ['655', '660', '688', '710', '764', '804', '841'], + '4-1': ['663', '705', '754', '794', '832', '836'], + '4-2': ['678', '700', '789', '809'] } - } } + #To be implemented after implementing redis server # self.examcodes=jntuhresultscraper.exam_codes()