* Code Formatting
* Updates Readme
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user