Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

[BUG] Student records do not match records in Firebase #1

Open
Jordan396 opened this issue Mar 15, 2021 · 0 comments
Open

[BUG] Student records do not match records in Firebase #1

Jordan396 opened this issue Mar 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Jordan396
Copy link
Owner

Jordan396 commented Mar 15, 2021

Firebase reflects the following records:
image

When added to the data array and printed:

// client/lib/select_loc.dart
initialiseClass() async {
    ///adding student details into an array for request body
    List<String> data = [];
    for (int m = 0; m < studList.length; m++) {
      data.add(
          '{"name": "${studnameList[m]}","matric": "${studList[m]}","image": "${studimageList[m]}"}'
              .toString());
      print(data);
    }
...
}

Values do not match those in Firestore:

I/flutter (11428): [{"name": "Mohit Prashant","matric": "U1823630E","image": "U1823630E.jpeg"}, {"name": "Loh Xin Yi","matric": "U1922030E","image": "U1922030E.jpeg"}, {"name": "Chio Ting Kiat","matric": "U1720465K","image": "U1720465K.jpeg"}, {"name": "Mohit Prashant","matric": "U1720465K","image": "U1823630E.jpeg"}, {"name": "Mohit Prashant","matric": "U1722016G","image": "U1922030E.jpeg"}, {"name": "Loh Xin Yi","matric": "U1823630E","image": "U1720465K.jpeg"}, {"name": "Loh Xin Yi","matric": "U1920679B","image": "U1720465K.jpeg"}, {"name": "Chio Ting Kiat","matric": "U1921848G","image": "U1722016G.jpeg"}, {"name": "Chio Ting Kiat","matric": "U1922030E","image": "U1823630E.jpeg"}, {"name": "Jordan Tan","matric": "U1823630E","image": "U1920679B.jpeg"}, {"name": "Ong Liwen","matric": "U1922030E","image": "U1921848G.jpeg"}, {"name": "Seah Yu Liang","matric": "U1720465K","image": "U1922030E.jpeg"}, {"name": "Mohit Prashant","matric": "U1720465K","image": "U1823630E.jpeg"}, {"name": "Mohit Prashant","matric": "U1722016G","image":

e.g. {"name": "Chio Ting Kiat","matric": "U1921848G","image": "U1722016G.jpeg"}

@Jordan396 Jordan396 added the bug Something isn't working label Mar 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant