aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md9
-rw-r--r--find_session.v3
2 files changed, 9 insertions, 3 deletions
diff --git a/README.md b/README.md
index 19eb318..8258da1 100644
--- a/README.md
+++ b/README.md
@@ -12,5 +12,12 @@ If you need more details on the availability run
v run ./find_session 13-08-2021
//Press enter to increment dates
```
+~Important~ District Code is hardcoded to Thiruvananthapuram
-> All of the code is for learning purpose only. I will not be responsible for any error or inaccuracy in the data or any damage caused by this. \ No newline at end of file
+### TODO
+- [ ] UI Formating
+- [ ] User Input for State & District
+- [ ] Filter Free & Paid
+
+### !!Disclaimer
+> All of the code hosted in this repo for learning purpose only. I will not be responsible for any error or inaccuracy in the data or any damage caused by this. - Indrajith K L \ No newline at end of file
diff --git a/find_session.v b/find_session.v
index a4a94b2..aebf2b4 100644
--- a/find_session.v
+++ b/find_session.v
@@ -144,8 +144,7 @@ fn (mut app App) find_session(district_id int,date string) {
return
}
- app.data.available_sessions = session_data.sessions
- .filter( it.available_capacity > 0 && it.min_age_limit<45)
+ app.data.available_sessions = session_data.sessions.filter( it.available_capacity > 0 && it.min_age_limit<45)
app.is_loading = false
}