Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADU5 a and b display #54

Open
sylarcp opened this issue Sep 12, 2016 · 4 comments
Open

ADU5 a and b display #54

sylarcp opened this issue Sep 12, 2016 · 4 comments
Assignees

Comments

@sylarcp
Copy link
Owner

sylarcp commented Sep 12, 2016

Currently only one of Adu5a or ADu5b can be seen for each event time.
This is because adu5 a and b are stored in the same table in database.
To make adu5a and adu5b separately updated. We need to get both adu5a and adu5b.
So each time when click next, we should get the tuple for both adu5a and adu5b. In this way we can update adu5a and adu5b separately.

@mcollins12321
Copy link
Collaborator

Our understanding is that for each event number we take the first entry in the database at that number and take that data we find there to be used by the website. This then becomes a problem as we don't have the data for the other entries at the same event number. Is this correct?

If so, how do we change what numbers become our api? Is it by changing the adu5.py file or by some other means?

@sylarcp
Copy link
Owner Author

sylarcp commented Sep 13, 2016

Yeah, that's correct.
I agree that we change adu5.py. The returned data should contain both matched adu5a and adu5b data. In the front end, the data will be parsed and put into correct adu5 place.

@varriaza
Copy link
Collaborator

@sylarcp
When I try to filter by the gpstype in the adu5.py file I am getting a problem when doing this for both adu5A and adu5B. If I'm interpreting the code correctly, it should go into "except BaseException" area and print "{}" if there is no adu5 data. My problem is that "{}" is all I am seeing for the adu5 api files (with my modified code), aka there is nothing in it. I was wondering if it would count there being no data for one of the adu5 types and then giving the BaseException? I have tested it without any changes are there was data there.

AKA

There may be data for, lets say, adu5A but not for Adu5B. As a result it sees no data in adu5B as an error and as a result prints only "{}" in the api (ignoring the adu5A data). Is this correct? If so, how can we change what is considered an error?

@varriaza
Copy link
Collaborator

@sylarcp Any updates about my question above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants