Skip to content

Commit d971f00

Browse files
committed
No cgpa case handled
1 parent fcf5577 commit d971f00

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
52 Bytes
Binary file not shown.

bunker_mod.py

+3
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ def return_cgpa(session):
275275
print("No Course Info available !!")
276276
else:
277277
print("No Course Info available !!")
278+
279+
if len(data) == 0 and len(latest_sem_data) == 0:
280+
return {'error': 'No data'}
278281

279282
global df
280283
global latest_sem_records

templates/output.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@
3636
<br>
3737
<br>
3838

39+
{% if cgpa.get("error", "") == "" %}
3940
<hr style="width:50%;height:2px;border: width 6px;">
4041
<center class="container">
4142
<h3 style="color:blue;font-family: 'Bebas Neue', cursive;">CGPA upto {{ cgpa.get("lastest_sem") }} sem : {{ cgpa.get("latest_sem_cgpa") }}</h5>
43+
{% endif %}
4244
</center>
43-
<hr style="width:50%;height:2px;border: width 6px;">
44-
4545

4646

47+
<hr style="width:50%;height:2px;border: width 6px;">
4748
{% for key in data %}
4849
<br>
4950
<center>

0 commit comments

Comments
 (0)