* Code Formatting

* Updates Readme
This commit is contained in:
Indrajith K L
2021-08-12 15:15:06 +05:30
parent b4b8338010
commit 14a6026f59
2 changed files with 9 additions and 3 deletions

View File

@@ -12,5 +12,12 @@ If you need more details on the availability run
v run ./find_session 13-08-2021 v run ./find_session 13-08-2021
//Press enter to increment dates //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. ### 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

View File

@@ -144,8 +144,7 @@ fn (mut app App) find_session(district_id int,date string) {
return return
} }
app.data.available_sessions = session_data.sessions app.data.available_sessions = session_data.sessions.filter( it.available_capacity > 0 && it.min_age_limit<45)
.filter( it.available_capacity > 0 && it.min_age_limit<45)
app.is_loading = false app.is_loading = false
} }