Oprava parsovani

This commit is contained in:
Matyáš Caras 2022-04-09 17:33:14 +02:00
parent 15ffa9e9c6
commit ee6ad69d66
3 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,5 @@
## 0.1.0-alpha.14
- Oprava `ziskejBurzu`, kvůli špatnému parsování
## 0.1.0-alpha.13
- Další opravy
- Úprava metod `doBurzy` a `objednat`, aby opravdu mohly vracet aktualizované instance `Jidlo`

View file

@ -432,7 +432,7 @@ class Canteen {
// Získat název jídla
var nazev = data[2].group(0)!.replaceAll(RegExp(r'\n| '), "");
// Získat počet kusů
var pocet = int.parse(data[3].group(0)!.replaceAll(" ks", ""));
var pocet = int.parse(data[4].group(0)!.replaceAll(" ks", ""));
var url = RegExp(r"(?<=')db.+?(?=')").firstMatch(bu)!.group(0)!;
var jidlo = Burza(
den: datum,

View file

@ -1,6 +1,6 @@
name: canteenlib
description: Library for communication with the czech canteen food ordering system iCanteen
version: 0.1.0-alpha.13
version: 0.1.0-alpha.14
repository: 'https://github.com/hernikplays/canteenlib'
issue_tracker: 'https://github.com/hernikplays/canteenlib/issues'
documentation: 'https://docs.hernikplays.cz'